@@ -7,7 +7,7 @@ export const codeToText = (code: number, ...parts: any[]): string => {
7
7
const MAP = [
8
8
'Error while serializing class or style attributes' , // 0
9
9
'Scheduler not found' , // 1
10
- '' , // 2 unused
10
+ 'track() received object, without prop to track ' , // 2
11
11
'Only primitive and object literals can be serialized. {{0}}' , // 3
12
12
'' , // 4 unused
13
13
'You can render over a existing q:container. Skipping render().' , // 5
@@ -50,12 +50,11 @@ export const codeToText = (code: number, ...parts: any[]): string => {
50
50
"Element must have 'q:container' attribute." , // 42
51
51
'Unknown vnode type {{0}}.' , // 43
52
52
'Materialize error: missing element: {{0}} {{1}} {{2}}' , // 44
53
- 'Cannot coerce a Signal, use `.value` instead' , // 46
54
- 'useComputedSignal$ QRL {{0}} {{1}} returned a Promise' , // 47
55
- 'ComputedSignal is read-only' , // 48
56
- 'WrappedSignal is read-only' , // 49
57
- 'SsrError: Promises not expected here.' , // 50
58
- 'Attribute value is unsafe for SSR' , // 51
53
+ 'Cannot coerce a Signal, use `.value` instead' , // 45
54
+ 'useComputedSignal$ QRL {{0}} {{1}} returned a Promise' , // 46
55
+ 'ComputedSignal is read-only' , // 47
56
+ 'WrappedSignal is read-only' , // 48
57
+ 'Attribute value is unsafe for SSR' , // 49
59
58
] ;
60
59
let text = MAP [ code ] ?? '' ;
61
60
if ( parts . length ) {
@@ -77,7 +76,7 @@ export const codeToText = (code: number, ...parts: any[]): string => {
77
76
export const enum QError {
78
77
stringifyClassOrStyle = 0 ,
79
78
schedulerNotFound = 1 ,
80
- UNUSED_2 = 2 ,
79
+ trackObjectWithoutProp = 2 ,
81
80
verifySerializable = 3 ,
82
81
UNUSED_4 = 4 ,
83
82
cannotRenderOverExistingContainer = 5 ,
@@ -124,8 +123,7 @@ export const enum QError {
124
123
computedNotSync = 46 ,
125
124
computedReadOnly = 47 ,
126
125
wrappedReadOnly = 48 ,
127
- promisesNotExpected = 49 ,
128
- unsafeAttr = 50 ,
126
+ unsafeAttr = 49 ,
129
127
}
130
128
131
129
export const qError = ( code : number , errorMessageArgs : any [ ] = [ ] ) : Error => {
0 commit comments