• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Compilation Error Codes
2
3> **NOTE**
4>
5> This topic describes only module-specific error codes. For details about universal error codes, see [Universal Error Codes](../errorcode-universal.md).
6
7## 10905301 @Watch Decorator Callback Function Is Not Defined
8**Error Message**<br>
9\'@Watch\' cannot be used with \'xxx\'. Apply it only to parameters that correspond to existing methods.
10
11**Description**<br>
12This error code is reported when the callback function for the @Watch decorator is not defined.
13
14**Possible Cause**<br>
15The variable decorated with @Watch is defined in the struct, but the corresponding callback function is missing.
16
17**Solution**<br>
18Define a callback function with the same name in the struct to handle the watched variable.
19
20## 10905101 @BuilderParam Initialization Error
21**Error Message**<br>
22\'@BuilderParam\' property can only initialized by \'@Builder\' function or \'@LocalBuilder\' method in struct.
23
24**Description**<br>
25This error code is reported when @BuilderParam decorated variables are initialized using methods other than those decorated by @Builder.
26
27**Possible Causes**<br>
28The @BuilderParam decorated variable is being initialized using a regular function or variable of another type.
29
30**Solution**<br>
31Define functions decorated by @LocalBuilder or @Builder and use them to initialize variables decorated by @BuilderParam.
32
33## 10905302 Mixed Use of Multiple State Management Decorators
34**Error Message**<br>
35The property \'xxx\' cannot have multiple state management decorators.
36
37**Description**<br>
38This error code is reported when a variable is decorated by multiple state management decorators.
39
40**Possible Cause**<br>
41The same variable is decorated by multiple state management decorators.
42
43**Solution**<br>
44Use only one appropriate state management decorator for the variable.
45
46## 10905303 State Variable Initialization Verification Exception
47**Error Message**<br>
48The \'xxx\' property \'yyy\' must be specified a default value.
49
50**Description**<br>
51This error code is reported when variables decorated by @State, @StorageLink, @StorageProp, @LocalStorageLink, @LocalStorageProp, or @Provide are not initialized.
52
53**Possible Cause**<br>
54Variables decorated by @State, @StorageLink, @StorageProp, @LocalStorageLink, @LocalStorageProp, or @Provide are not initialized.
55
56**Solution**<br>
57Initialize variables decorated by @State, @StorageLink, @StorageProp, @LocalStorageLink, @LocalStorageProp, and @Provide.
58
59## 10905304 Failed to Verify the Initialization of a Specific Decorated Variable
60**Error Message**<br>
61The \'xxx\' property cannot be specified a default value.
62
63**Description**<br>
64This error code is reported when initialization is performed on variables decorated by decorators such as @Consume, @Link, and @ObjectLink.
65
66**Possible Cause**<br>
67Initialization is performed when defining variables decorated by decorators such as @Consume, @Link, and @ObjectLink.
68
69**Solution**<br>
70Do not initialize variables decorated by @Consume, @Link, and @ObjectLink. Refer to the correct value assignment rules for decorators.
71
72## 10905305 Variable Type Verification Exception
73**Error Message**<br>
74The property \'xxx\' must specify a type.
75
76**Description**<br>
77This error code is reported when the type is not specified for a variable decorated by a decorator.
78
79**Possible Cause**<br>
80The type is not specified for a variable decorated by a decorator.
81
82**Solution**<br>
83Specify the type for the variable decorated by the decorator.
84
85## 10905307 Failed to Verify the Specific Decorated Variable Type
86**Error Message**<br>
87\'@ObjectLink\' cannot be used with this type. Apply it only to classes decorated by \'@Observed\' or initialized using the return value of \'makeV1Observed\'.
88
89**Description**<br>
90This error code is reported when the type of a variable decorated by @ObjectLink is not a class or union type decorated by @Observed defined in an .ets file.
91
92**Possible Cause**<br>
93The variable decorated by @ObjectLink is initialized using a class that is not decorated by @Observed or another incompatible type.
94
95**Solution**<br>
96Ensure that class instances decorated by @Observed are used with @ObjectLink.
97
98## 10905308 Failed to Verify the Decorator of a Specific Variable Type
99**Error Message**<br>
100The \'xxx\' property \'yyy\' cannot be a \'zzz\' object.
101
102**Description**<br>
103This error code is reported when a variable decorated by @State or other state decorators is of type CustomDialogController.
104
105**Possible Cause**<br>
106A state variable decorator is used on a variable of type CustomDialogController.
107
108**Solution**<br>
109Do not use state variable decorators on variables of type CustomDialogController.
110
111## 10905309 Custom Decorator Name Verification Error
112**Error Message**<br>
113The decorator \'xxx\' cannot have the same name as the built-in style attribute \'yyy\'.
114
115**Description**<br>
116This error code is reported when a custom decorator has the same name as a built-in property.
117
118**Possible Cause**<br>
119The custom decorator name conflicts with a built-in property name.
120
121**Solution**<br>
122Rename the custom decorator to avoid conflicts with built-in property names.
123
124## 10905310 @Watch Decorator Verification Error
125**Error Message**<br>
126Regular variable \'xxx\' can not be decorated with \'@Watch\'.
127
128**Description**<br>
129This error code is reported when a regular variable is decorated by @Watch.
130
131**Possible Cause**<br>
132The @Watch decorator is used on a regular variable.
133
134**Solution**<br>
135Use @Watch only on state variables decorated by appropriate state variable decorators, such as @State.
136
137## 10905311 @Watch Decorator Parameter Verification Error
138**Error Message**<br>
139\'@Watch\' cannot be used with \'xxx\'. Apply it only to \'string\' parameters.
140
141**Description**<br>
142This error code is reported when the parameter of the @Watch decorator is not a string.
143
144**Possible Cause**<br>
145A non-string value is used as the parameter for the @Watch decorator.
146
147**Solution**<br>
148Ensure that the parameter of the @Watch decorator is a string.
149
150## 10905312 Custom Decorator Verification Exception
151**Error Message**<br>
152The inner decorator \'xxx\' cannot be used together with custom decorator.
153
154**Description**<br>
155This error code is reported when built-in component decorators such as @State are used together with custom decorators.
156
157**Possible Cause**<br>
158A custom decorator is applied to a variable that already has a built-in component decorator, such as @State.
159
160**Solution**<br>
161Avoid using both state variable decorators (such as @State) and custom decorators on the same variable.
162
163## 10905201 Parent Component Verification Error
164**Error Message**<br>
165The \'xxx\' component can only be nested in the \'yyy\' parent component.
166
167**Description**<br>
168This error code is reported when a component's parent is not the specified parent component.
169
170**Possible Cause**<br>
171The parent component of a component (for example, **Blank**) is not within the allowed range of parent components.
172
173**Solution**<br>
174Modify the parent component or add an intermediate component based on the error description.
175
176## 10905202 Failed to Verify the Child Component of the Button Component
177**Error Message**<br>
178The Button component with a label parameter can not have any child.
179
180**Description**<br>
181This error code is reported when a **Button** component with a label contains child components.
182
183**Possible Cause**<br>
184The **Button** component includes both a label and child components, which is not allowed.
185
186**Solution**<br>
187Remove either the label content or the child component content (including the braces).
188
189## 10905203 .stateStyles Syntax Check Error
190**Error Message**<br>
191\'.stateStyles\' doesn't conform standard.
192
193**Description**<br>
194This error code is reported when the **stateStyles** property does not comply with the syntax.
195
196**Possible Cause**<br>
197The **stateStyles** property is incorrectly specified or does not conform to the required syntax.
198
199**Solution**<br>
200Ensure that different states in **stateStyles** are correctly specified.
201
202## 10905204 UI Component Syntax Check Error
203**Error Message**<br>
204\'xxx\' does not meet UI component syntax.
205
206**Description**<br>
207This error code is reported when a statement does not comply with the UI component syntax.
208
209**Possible Cause**<br>
210The code does not follow the basic UI component syntax.
211
212**Solution**<br>
213Modify the syntax according to the correct UI component syntax.
214
215## 10905207 Failed to Verify the then Clause of the if Statement
216**Error Message**<br>
217Then statement cannot be null in if statement.
218
219**Description**<br>
220This error code is reported when the **if** statement is missing a **then** clause.
221
222**Possible Cause**<br>
223The **then** statement in the **if** syntax is empty.
224
225**Solution**<br>
226Add a valid **then** clause after the **if** statement.
227
228## 10905208 Failed to Verify the Judgment Condition of the if Statement
229**Error Message**<br>
230Condition expression cannot be null in if statement.
231
232**Description**<br>
233This error code is reported when the **if** statement is missing a condition.
234
235**Possible Cause**<br>
236The judgment condition of the **if** statement is empty.
237
238**Solution**<br>
239Add a valid condition to the **if** statement.
240
241## 10905102 @BuilderParam Tail Closure Scenario Verification Exception
242**Error Message**<br>
243In the trailing lambda case, \'xxx\' must have one and only one property decorated with \'@BuilderParam\', and its \'@BuilderParam\' expects no parameter.
244
245**Description**<br>
246This error code is reported when multiple variables decorated by @BuilderParam are defined in the trailing closure scenario, or a variable decorated by @BuilderParam contains parameters.
247
248**Possible Cause**<br>
249In the trailing closure scenario, there can be only one variable decorated by @BuilderParam (excluding parameters).
250
251**Solution**<br>
252Remove unnecessary @BuilderParam decorators and retain only one @BuilderParam decorator without parameters.
253
254## 10905209 UI Syntax Verification Error with the build() Method
255**Error Message**<br>
256Only UI component syntax can be written here.
257
258**Description**<br>
259This error code is reported when content other than UI syntax is used.
260
261**Possible Cause**<br>
262Non-UI syntax is used.
263
264**Solution**<br>
265Modify the syntax according to the correct UI component syntax.
266
267## 10905210 Root Container Verification Error with the build() Method
268**Error Message**<br>
269In an \'@Entry\' decorated component, the \'build\' method can have only one root node, which must be a container component.
270
271**Description**<br>
272This error code is reported when multiple root containers are defined in the **build()** method.
273
274**Possible Cause**<br>
275Multiple root containers are defined in the build() method.
276
277**Solution**<br>
278Remove redundant root containers to ensure that the **build()** method has only one root container.
279
280## 10905103 Failed to Verify the build() Method
281**Error Message**<br>
282The struct \'xxx\' must have at least and at most one 'build' method.
283
284**Description**<br>
285This error code is reported when multiple **build()** methods are defined in the struct component, or the **build()** method is missing.
286
287**Possible Cause**<br>
288Multiple **build()** methods are defined in the struct, or the **build()** method is missing.
289
290**Solution**<br>
291Define only one **build()** method in the struct.
292
293## 10905211 Failed to Verify @CustomDialog Member Properties
294**Error Message**<br>
295The \'@CustomDialog\' decorated custom component must contain a property of the CustomDialogController type.
296
297**Description**<br>
298This error code is reported when a custom component decorated by @CustomDialog lacks a member property of the CustomDialogController type.
299
300**Possible Cause**<br>
301The custom component decorated by @CustomDialog does not have a member property of the CustomDialogController type.
302
303**Solution**<br>
304Add a member property of the CustomDialogController type to the custom component decorated by @CustomDialog.
305
306## 10905212 Struct Verification Error
307**Error Message**<br>
308Structs are not allowed to inherit from classes or implement interfaces.
309
310**Description**<br>
311This error code is reported when a struct is defined as a subclass or implementation of another class or API.
312
313**Possible Cause**<br>
314The struct extends another class or implements another API.
315
316**Solution**<br>
317Do not use structs to extend other classes or implement other APIs.
318
319## 10905104 Failed to Verify the Static Method Decorator of the Custom Component
320**Error Message**<br>
321Static methods in custom components cannot be decorated by \'@LocalBuilder\'.
322
323**Description**<br>
324This error code is reported when the @LocalBuilder decorator is used on static methods in custom components.
325
326**Possible Cause**<br>
327The @LocalBuilder decorator is used on static methods.
328
329**Solution**<br>
330Remove the **static** keyword.
331
332## 10905105 @Styles Decorator Verification Error
333**Error Message**<br>
334\'@Styles\' decorated functions and methods cannot have arguments.
335
336**Description**<br>
337This error code is reported when parameters are included in functions decorated by @Styles.
338
339**Possible Cause**<br>
340Parameters are included in functions decorated by @Styles.
341
342**Solution**<br>
343Remove the parameters from the @Styles decorator.
344
345## 10905106 Failed to Verify the build() Method
346**Error Message**<br>
347The \'build\' method can not have arguments.
348
349**Description**<br>
350This error code is reported when parameters are included in the **build()** method.
351
352**Possible Cause**<br>
353Parameters are included in the **build()** method.
354
355**Solution**<br>
356Remove the parameters from the **build()** method.
357
358## 10905313 Failed to Verify the Struct Variable
359**Error Message**<br>
360The static variable of struct cannot be used together with built-in decorators.
361
362**Description**<br>
363This error code is reported when a built-in decorator is used to decorate a static variable in the struct.
364
365**Possible Cause**<br>
366A built-in decorator is used to decorate a static variable in the struct.
367
368**Solution**<br>
369Do not use built-in decorators to decorate static variables in structs.
370
371## 10905314 \$ Use Verification Error
372**Error Message**<br>
373Property \'xxx\' cannot initialize using \'\$\' to create a reference to a variable.
374
375**Description**<br>
376This error code is reported when $ is used incorrectly to decorate a variable. $ can only be used on child component attributes decorated by @Link.
377
378**Possible Cause**<br>
379The \$ symbol is used to decorate a property member that is decorated by @Prop or other property members not decorated by @Link in a child component.
380
381**Solution**<br>
382Use the @Link decorator to decorate the corresponding variable in the child component, or remove \$.
383
384## 10905315 Parent and Child Component Value Verification Exception
385**Error Message**<br>
386The \'xxx\' property \'yyy\' cannot be assigned to the \'zzz\' property \'nnn\'.
387
388**Description**<br>
389This error code is reported when the value assignment between parent and child components is incorrect.
390
391**Possible Cause**<br>
392A regular variable is used to initialize a member variable decorated by @Link in a child component.
393
394**Solution**<br>
395Do not use regular variables to initialize member variables decorated by @Link in child components.
396
397## 10905316 @Link Decorator Variable Initialization Verification Exception
398**Error Message**<br>
399The property \'xxx\' in the custom component \'yyy\' is missing (mandatory to specify).
400
401**Description**<br>
402This error code is reported when variables decorated by @Link are not initialized from the parent component.
403
404**Possible Cause**<br>
405The member variable decorated by @Link in the child component is not initialized when the parent component calls the child component.
406
407**Solution**<br>
408Initialize variables decorated by @Link from the parent component.
409
410## 10905317 Failed to Verify the Initialization of a Decorated Variable
411**Error Message**<br>
412The property \'xxx\' in the custom component \'yyy\' cannot be initialized here (forbidden to specify).
413
414**Description**<br>
415This error code is reported when variables decorated by @StorageProp, @StorageLink, @Consume, or other decorators are initialized when a parent component calls a child component.
416
417**Possible Cause**<br>
418Member variables decorated by @StorageProp, @StorageLink, and @Consume are initialized when the parent component calls the child component.
419
420**Solution**<br>
421Correctly use variables decorated by the @StorageProp, @StorageLink, or @Consume decorator. For details, see the reference documentation of these decorators.
422
423## 10905318 Verification Error During Parent-to-Child Transfer Using !! with a V2 Component
424**Error Message**<br>
425When the two-way binding syntax is used, the initial value of property \'xxx\' must be a variable.
426
427**Description**<br>
428This error code is reported when non-variables are used for parent-child transfer using **!!** with a V2 component.
429
430**Possible Cause**<br>
431Functions, constants, or literals are used for parent-child transfer using **!!** with a V2 component.
432
433**Solution**<br>
434When using **!!** with a V2 component for parent-child transfer, make sure only variables are used.
435
436## 10905319 Child Component Variable Verification Error During !! Use with a V2 Component
437**Error Message**<br>
438When the two-way binding syntax is used, the variable \'xxx\' must be decorated with \'@Param\', and the \'@Event\' variable \'yyy\' must be defined in the \'zzz\'.
439
440**Description**<br>
441This error code is reported when @Param is not used together with @Event when **!!** is used with a V2 component.
442
443**Possible Cause**<br>
444When a V2 component is used, the child component variable is not decorated by @Param or the @Event decorated callback method is not defined.
445
446**Solution**<br>
447Use @Param to decorate child component variables and define the callback method decorated by @Event in the V2 scenario.
448
449## 10905320 @Param Initialization Verification Error in the V2 Scenario
450**Error Message**<br>
451The optional character can not be used in the initial value of property \'xxx\'.
452
453**Description**<br>
454This error code is reported when optional symbols are used to transfer @Param decorated variables defined by child components in the V2 scenario.
455
456**Possible Cause**<br>
457In the V2 scenario, an optional symbol is used for initializing an @Param decorated variable in the child component.
458
459**Solution**<br>
460Avoid using optional symbols when initializing variables decorated by @Param in the V2 scenario.
461
462## 10905321 Failed to Verify the Initialization of @Prop and @BuilderParam Decorated Variables
463**Error Message**<br>
464\'@Required\' decorated \'xxx\' must be initialized through the component constructor.
465
466**Description**<br>
467This error code is reported when the initialization of the @Prop and @BuilderParam decorated variables is incorrect.
468
469**Possible Cause**<br>
470The @Require decorator is used with @Prop and @BuilderParam to decorate child component variables, but these variables fail to be initialized when the parent component calls the child component.
471
472**Solution**<br>
473Make sure variables decorated by @Require, @Prop, or @BuilderParam are initialized when the parent component calls the child component.
474
475## 10905213 Incorrect Mixed Use of V1 and V2 Components
476**Error Message**<br>
477A V2 component cannot be used with any member property decorated by \'@Link\' in a V1 component.
478
479**Description**<br>
480This error code is reported when a V2 component is used together with the @Link decorator of a V1 component.
481
482**Possible Cause**<br>
483V1 components containing the @Link decorator are used within V2 components.
484
485**Solution**<br>
486Avoid using V1 components with the @Link decorator in V2 components.
487
488## 10905323 V2 Decorator Decorated Properties Incorrectly Assigned to V1 Components
489**Error Message**<br>
490Property \'xxx\' in the \'@ComponentV2\' component \'yyy\' is not allowed to be assigned values here.
491
492**Description**<br>
493This error code is reported when a property decorated by a V2 decorator is assigned to a V1 component.
494
495**Possible Cause**<br>
496The V1 component called is assigned with a property decorated by a V2 decorator.
497
498**Solution**<br>
499Do not assign values of properties decorated by V2 decorators to V1 components.
500
501## 10905324 Incorrect Initialization of a Specific Decorated Variable
502**Error Message**<br>
503The \'xxx\' property \'yyy\' in the custom component \'zzz\' cannot be initialized here (forbidden to specify).
504
505**Description**<br>
506This error code is reported when variables decorated by specific decorators are initialized during parent-child component calls.
507
508**Possible Cause**<br>
509A variable decorated by a specific decorator in a child component is not correctly initialized when called in the parent component.
510
511**Solution**<br>
512Follow the usage guidelines of the specific decorators.
513
514## 10905325 Incorrect Use of @Require in the V2 Scenario
515**Error Message**<br>
516In a struct decorated with \'@ComponentV2\', \'@Require\' can only be used with \'@Param\'.
517
518**Description**<br>
519This error code is reported when the @Require decorator is used with a decorator other than @Param in the V2 scenario.
520
521**Possible Cause**<br>
522The @Require decorator is used with a decorator other than @Param in the V2 scenario.
523
524**Solution**<br>
525Use @Require together with @Param.
526
527## 10905326 Incorrect Use of @Once in the V2 Scenario
528**Error Message**<br>
529When a variable decorated with \'@Once\', it must also be decorated with \'@Param\'.
530
531**Description**<br>
532This error code is reported when the @Once decorator is used without the @Param decorator in the V2 scenario.
533
534**Possible Cause**<br>
535The variable decorated by @Once is not decorated by @Param in the V2 scenario.
536
537**Solution**<br>
538Use @Once together with @Param.
539
540## 10905327 Failed to Verify the Default Value of @Param in the V2 Scenario
541**Error Message**<br>
542When a variable decorated with \'@Param\' is not assigned a default value, it must also be decorated with \'@Require\'.
543
544**Description**<br>
545This error code is reported when a variable decorated by @Param in a V2 component is not assigned a default value and is not decorated by @Require.
546
547**Possible Cause**<br>
548In the V2 scenario, the @Param decorator is used to decorate variables that are not assigned default values or decorated by the @Require decorator.
549
550**Solution**<br>
551Assign a default value to the variable decorated by @Param or decorate it with @Require.
552
553## 10905107 @BuilderParam Initialization Error
554**Error Message**<br>
555\'@BuilderParam\' property can only be initialized by \'@Builder\' function.
556
557**Description**<br>
558This error code is reported when @BuilderParam decorated variables are initialized using methods other than those decorated by @Builder.
559
560**Possible Cause**<br>
561Other types of variables or regular functions are used to initialize variables decorated by @BuilderParam.
562
563**Solution**<br>
564Change the initial value of @BuilderParam to a function decorated by @Builder.
565
566## 10905328 Failed to Verify the Member Type of a State Variable
567**Error Message**<br>
568The property \'xxx\' must specify a type.
569
570**Description**<br>
571This error code is reported when the member property type of a state variable fails verification.
572
573**Possible Cause**<br>
574The type of the state variable is not declared.
575
576**Solution**<br>
577Declare the type for the state variable. The type must meet the verification requirements.
578
579## 10906217 Failed to verify Service Widget Parameters
580**Error Message**<br>
581\'@Entry\' doesn't support {} parameter in card.
582
583**Description**<br>
584This error code is reported when @Entry in the service widget does not support the specified input parameter.
585
586**Possible Cause**<br>
587An invalid parameter is passed to @Entry in the service widget.
588
589**Solution**<br>
590Rectify the issue based on the error message.
591
592## 10905108 @Extend Decorator Parameter Verification Error
593**Error Message**<br>
594\'xxx\' should have one and only one parameter.
595
596**Description**<br>
597This error code is reported when decorators such as @Extend do not have exactly one parameter.
598
599**Possible Cause**<br>
600When using decorators such as @Extend, no parameter is provided or multiple parameters are provided.
601
602**Solution**<br>
603Make sure decorators such as @Extend have exactly one parameter.
604
605## 10903329 Resource Name Verification Exception
606**Error Message**<br>
607Unknown resource name \'xxx\'.
608
609**Description**<br>
610This error code is reported when the resource name fails verification.
611
612**Possible Cause**<br>
613The provided resource name is incorrect.
614
615**Solution**<br>
616Make sure the resource name is correct.
617
618## 10903330 Resource Type Verification Exception
619**Error Message**<br>
620Unknown resource type \'xxx\'.
621
622**Description**<br>
623This error code is reported when the resource type fails verification.
624
625**Possible Cause**<br>
626The provided resource name is incorrect.
627
628**Solution**<br>
629Make sure the resource type is correct.
630
631## 10903331 Resource Source Verification Exception
632**Error Message**<br>
633Unknown resource source \'xxx\'.
634
635**Description**<br>
636This error code is reported when the resource source fails verification.
637
638**Possible Cause**<br>
639The provided resource source is incorrect.
640
641**Solution**<br>
642Make sure the resource source is correct.
643
644## 10905332 Resource Reference Format Verification Exception
645**Error Message**<br>
646Invalid resource file parameter. Enter a value in the format of \'xxx.yyy.zzz\'.
647
648**Description**<br>
649This error code is reported when the resource is incorrectly referenced.
650
651**Possible Cause**<br>
652The format used to reference resources is incorrect.
653
654**Solution**<br>
655Make sure the format used to reference resources is correct.
656
657## 10904333 Resource Verification Exception
658**Error Message**<br>
659No such \'xxx\' resource in current module.
660
661**Description**<br>
662This error code is reported when the **\$rawfile\(\)** references a resource that does not exist.
663
664**Possible Cause**<br>
665The provided resource does not exist.
666
667**Solution**<br>
668Make sure the resource name and path used match those specified using **\$rawfile**.
669
670## 10905109 wrapBuilder Parameter Verification Exception
671**Error Message**<br>
672The wrapBuilder\'s parameter should be a \'@Builder\' function.
673
674**Description**<br>
675This error code is reported when the parameter of **wrapBuilder** is not an @Builder decorated method.
676
677**Possible Cause**<br>
678a variable of another type or a regular function is used as the parameter of **wrapBuilder**.
679
680**Solution**<br>
681Change the parameter of **wrapBuilder** to an @Builder decorated method.
682
683## 10905110 @Styles Verification Exception
684**Error Message**<br>
685\'@Styles\' decorated functions and methods cannot have arguments.
686
687**Description**<br>
688This error code is reported when the method decorated by the @Styles decorator contains parameters.
689
690**Possible Cause**<br>
691The method decorated by the @Styles decorator contains parameters.
692
693**Solution**<br>
694Remove the parameters from the @Styles decorated method.
695
696## 10905111 Incorrect Mixed Use of @AnimatedExtend and @Extend
697**Error Message**<br>
698The function can not be decorated by \'@Extend\' and \'@AnimatedExtend\' at the same time.
699
700**Description**<br>
701This error code is reported when both @AnimatedExtend and @Extend decorators are used to decorate the same API.
702
703**Possible Cause**<br>
704Both the @AnimatedExtend and @Extend decorators are used to decorate the same API.
705
706**Solution**<br>
707Remove either the @Extend or @AnimatedExtend decorator.
708
709## 10905112 Decorator Verification Error
710**Error Message**<br>
711\'xxx\' can not decorate the method.
712
713**Description**<br>
714This error code is reported when invalid decorators such as @State are used to decorate methods.
715
716**Possible Cause**<br>
717Property decorators such as @State are used to decorate methods.
718
719**Solution**<br>
720Do not use property decorators such as @State to decorate methods.
721
722## 10905219 Incorrect Use of Child Components
723**Error Message**<br>
724The component \'xxx\' can only have the child component \'yyy\'.
725
726**Description**<br>
727This error code is reported when unsupported child components are used in components such as **ContainerSpan**.
728
729**Possible Cause**<br>
730A component such as **ContainerSpan** is used incorrectly with a child component outside the supported range.
731
732**Solution**<br>
733Change the child component to one within the specified range.
734
735## 10905220 Incorrect Number of Child Components
736**Error Message**<br>
737The \'xxx\' component can have only one child component.
738
739**Description**<br>
740This error code is reported when components such as **Button** that allows only a single child component contains multiple child components.
741
742**Possible Cause**<br>
743Multiple child components are defined in a component that allows only a single child component.
744
745**Solution**<br>
746Make sure the component in question has only one child component.
747
748## 10905221 Incorrect Number of Child Components of a Specific Component
749**Error Message**<br>
750When the component \'xxx\' set \'yyy\' as \'zzz\', it can only have a single child component.
751
752**Description**<br>
753This error code is reported when multiple child components are defined for a specific component attribute that allows only a single child component.
754
755**Possible Cause**<br>
756Multiple child components are defined for a specific component attribute that allows only a single child component.
757
758**Solution**<br>
759Delete redundant child components of the specific component. Retain a maximum of one child component.
760
761## 10905222 Failed to Verify Components Such as Image
762**Error Message**<br>
763The component \'xxx\' can't have any child.
764
765**Description**<br>
766This error code is reported when components such as **Image** contain braces (child components).
767
768**Possible Cause**<br>
769Child components are defined for components that do not allow child components, such as **Image**.
770
771**Solution**<br>
772Delete the child components.
773
774## 10905223 Incorrect Number of Child Components of a Specific Component
775**Error Message**<br>
776When the component \'xxx\' set \'yyy\' as \'zzz\', it can't have any child.
777
778**Description**<br>
779This error code is reported when child components are defined for the target component attribute that does not allow child components.
780
781**Possible Cause**<br>
782Child components are defined for the target component attribute that does not allow child components.
783
784**Solution**<br>
785Delete the child components from the target component.
786
787## 10905113 Incorrect Use of @Extend
788**Error Message**<br>
789Use the \'xxx\' decorator only in the global scope.
790
791**Description**<br>
792This error code is reported when decorators such as @Extend is used to decorate a member property method of a class or struct.
793
794**Possible Cause**<br>
795A decorator such as @Extend is used in a class or struct.
796
797**Solution**<br>
798Follow the usage guidelines of decorators.
799
800## 10905337 Incorrect Decorator Use
801**Error Message**<br>
802The \'xxx\' decorator can only be used with \'struct\'.
803
804**Description**<br>
805This error code is reported when a struct decorator is used to decorate non-structs.
806
807**Possible Cause**<br>
808Struct decorators such as @Component and @ComponentV2 are used to decorate non-structs, such as functions.
809
810**Solution**<br>
811Use the correct decorator based on the error message.
812
813## 10905338 V2 Decorator Verification Error
814**Error Message**<br>
815The \'xxx\' decorator can only be used in a \'struct\' decorated with \'@ComponentV2\'.
816
817**Description**<br>
818This error code is reported when a V2 member decorator is used in a struct not decorated by @ComponentV2.
819
820**Possible Cause**<br>
821The V2 member decorator is used in a struct decorated by @Component.
822
823**Solution**<br>
824Apply the V2 member decorator according to the instructions provided in the error message.
825
826## 10905339 V1 Decorator Verification Error
827**Error Message**<br>
828The \'xxx\' decorator can only be used in a \'struct\' decorated with \'@Component\'.
829
830**Description**<br>
831This error code is reported when the member decorator of V1 is used in a struct not decorated by @Component.
832
833**Possible Cause**<br>
834The V1 member decorator is used in a struct decorated by @ComponentV2.
835
836**Solution**<br>
837Apply the V1 member decorator according to the instructions provided in the error message.
838
839## 10905224 An @Observed Decorated Class Cannot Inherit from an @ObservedV2 Decorated Class
840**Error Message**<br>
841A class decorated by \'@Observed\' cannot inherit from a class decorated by \'@ObservedV2\'.
842
843**Description**<br>
844This error code is reported when an @Observed decorated class inherits from an @ObservedV2 decorated class.
845
846**Possible Cause**<br>
847An @Observed decorated class inherits from an @ObservedV2 decorated class.
848
849**Solution**<br>
850Inherit from a class decorated by @Observed or change the class decorator to @ObservedV2.
851
852## 10905225 An @ObservedV2 Decorated Class Cannot Inherit from an @Observed Decorated Class
853**Error Message**<br>
854A class decorated by \'@ObservedV2\' cannot inherit from a class decorated by \'@Observed\'.
855
856**Description**<br>
857This error code is reported when an @ObservedV2 decorated class inherits from an @Observed decorated class.
858
859**Possible Cause**<br>
860An @ObservedV2 decorated class inherits from an @Observed decorated class.
861
862**Solution**<br>
863Inherit from a class decorated by @ObservedV2 or change the class decorator to @Observed.
864
865## 10905226 Incorrect Mixed Use of @Observed and @ObservedV2
866**Error Message**<br>
867A class can not be decorated by \'@Observed\' and \'@ObservedV2\' at the same time.
868
869**Description**<br>
870This error code is reported when a class is decorated by both @Observed and @ObservedV2.
871
872**Possible Cause**<br>
873Both @Observed and @ObservedV2 are used to decorate the same class.
874
875**Solution**<br>
876Retain only one appropriate class decorator.
877
878## 10905340 Incorrect Use of Decorators Designed to Decorate Member Variables in a Class
879**Error Message**<br>
880The \'xxx\' can decorate only member variables in a \'class\'.
881
882**Description**<br>
883This error code is reported when decorators designed to decorate member variables in a class are used to decorate methods instead.
884
885**Possible Cause**<br>
886Decorators designed to decorate member variables in a class, such as @Type, are used to decorate methods instead.
887
888**Solution**<br>
889Remove the decorators in question from methods in the class.
890
891## 10905341 Incorrect Mixed Use of @Type and @Observed
892**Error Message**<br>
893The \'xxx\' decorator can not be used in a \'class\' decorated with \'@Observed\'.
894
895**Description**<br>
896This error code is reported when the decorator used in an @Observed decorated class is not supported.
897
898**Possible Cause**<br>
899The decorator used in an @Observed decorated class is not supported.
900
901**Solution**<br>
902Remove the unsupported decorator.
903
904## 10905342 Incorrect Mixed Use of @Type and @Sendable
905**Error Message**<br>
906The \'xxx\' decorator can not be used in a \'class\' decorated with \'@Sendable\'.
907
908**Description**<br>
909This error code is reported when the decorator used in an @Sendable decorated class is not supported.
910
911**Possible Cause**<br>
912The decorator used in an @Sendable decorated class is not supported.
913
914**Solution**<br>
915Remove the unsupported decorator.
916
917## 10905343 Incorrect Use of Decorators Designed to Decorate Member Methods in an @ObservedV2 Decorated Class
918**Error Message**<br>
919The \'xxx\' can decorate only member \'yyy\' within a \'class\' decorated with \'@ObservedV2\'.
920
921**Description**<br>
922This error code is reported when decorators designed to decorate member methods in an @ObservedV2 decorated class are used to decorate member methods in classes decorated by @Observed.
923
924**Possible Cause**<br>
925Decorators designed to decorate member methods in an @ObservedV2 decorated class are used to decorate member methods in classes decorated by @Observed.
926
927**Solution**<br>
928Use the decorator in question, such as @Monitor, only in @ObservedV2 decorated classes. In @Observed classes, use the @Watch decorator instead.
929
930## 10905344 Incorrect Use of @Track and a V2 Decorator
931**Error Message**<br>
932\'xxx\' cannot be used with classes decorated by \'@ObservedV2\'. Use the \'@Trace\' decorator instead.
933
934**Description**<br>
935This error code is reported when a decorator designed for V1 is used with an @ObservedV2 decorated class.
936
937**Possible Cause**<br>
938A decorator designed for V1, such as @Track, is used with an @ObservedV2 decorated class.
939
940**Solution**<br>
941Do not use decorators designed for V1 in @ObservedV2 decorated classes.
942
943## 10905345 Incorrect Use of @Track Outside a Class
944**Error Message**<br>
945The \'xxx\' decorator can decorate only member variables of a class.
946
947**Description**<br>
948This error code is reported when a decorator designed for use within a class is applied outside of a class.
949
950**Possible Cause**<br>
951A decorator designed for use within a class, such as @Track, are applied outside of a class.
952
953**Solution**<br>
954Make sure the decorators designed for use within a class are applied only within a class.
955
956## 10905346 Incorrect Use of a V2 Decorator
957**Error Message**<br>
958\'xxx\' can only decorate member property.
959
960**Description**<br>
961This error code is reported when decorators such as @Local, @Param, @Once, @Event, @Provider, @Consume, and @BuilderParam are used to decorate non-member properties in @ComponentV2.
962
963**Possible Cause**<br>
964The @Local, @Param, @Once, @Event, @Provider, @Consume, or @BuilderParam decorator is used to decorate a non-member property in @ComponentV2.
965
966**Solution**<br>
967Use @Local, @Param, @Once, @Event, @Provider, @Consume, and @BuilderParam only to decorate member properties in @ComponentV2.
968
969## 10905115 Incorrect Use of Method Decorators
970**Error Message**<br>
971\'xxx\' can only decorate method.
972
973**Description**<br>
974This error code is reported when method decorators, such as @LocalBuilder and @Monitor, are used to decorate non-methods.
975
976**Possible Cause**<br>
977Method decorators, such as @LocalBuilder and @Monitor, are used to decorate property variables, global functions, or methods in classes.
978
979**Solution**<br>
980Use the method decorators only to decorate methods.
981
982## 10905116 Incorrect Use of the @Computed Decorator
983**Error Message**<br>
984\'@Computed\' can only decorate 'GetAccessor'.
985
986**Description**<br>
987This error code is reported when @Computed is used to decorate a method that is not a getter.
988
989**Possible Cause**<br>
990The @Computed decorator is used to decorate a non-getter method.
991
992**Solution**<br>
993Use @Computed only to decorate getter methods.
994
995## 10905117 Incorrect Mixed Use of Method Decorators
996**Error Message**<br>
997A function can only be decorated by one of the \'@AnimatedExtend\', \'@Builder\', \'@Extend\', \'@Styles\', \'@Concurrent\' and \'@Sendable\''.
998
999**Description**<br>
1000This error code is reported when two different method decorators are defined on the same method.
1001
1002**Possible Cause**<br>
1003Multiple method decorators are defined on the same method.
1004
1005**Solution**<br>
1006Select a single appropriate method decorator to use.
1007
1008## 10905119 Duplicate Decorators
1009**Error Message**<br>
1010Duplicate \'xxx\' decorators for method are not allowed.
1011
1012**Description**<br>
1013This error code is reported when the same decorator is applied to the same method multiple times.
1014
1015**Possible Cause**<br>
1016The same decorator is used repeatedly for a method.
1017
1018**Solution**<br>
1019Avoid using the same decorator multiple times on the same method.
1020
1021## 10905121 Incorrect Mixed Use of Built-in Decorators
1022**Error Message**<br>
1023The member property or method can not be decorated by multiple built-in decorators.
1024
1025**Description**<br>
1026This error code is reported when multiple built-in decorators are used to decorate the same member property or method.
1027
1028**Possible Cause**<br>
1029Multiple built-in decorators are used on the same member property or method.
1030
1031**Solution**<br>
1032Select a single appropriate built-in decorator to use.
1033
1034## 10905348 Invalid State Variable Type
1035**Error Message**<br>
1036The type of the \'xxx\' property can not be a class decorated with \'@ObservedV2\'.
1037
1038**Description**<br>
1039This error code is reported when a class decorated by @ObservedV2 is used as the type of a state variable.
1040
1041**Possible Cause**<br>
1042A class decorated by @ObservedV2 is used as the type of a state variable.
1043
1044**Solution**<br>
1045Avoid using classes decorated by @ObservedV2 as the type for state variables.
1046
1047## 10905122 Incorrect Use of the @Concurrent Decorator
1048**Error Message**<br>
1049\'@Concurrent\' can not be used on \'xxx\' function declaration.
1050
1051**Description**<br>
1052This error code is reported when @Concurrent is used to decorate a specific function.
1053
1054**Possible Cause**<br>
1055The @Concurrent decorator is used to decorate a specific function.
1056
1057**Solution**<br>
1058Do not use the @Concurrent decorator on specific functions.
1059
1060## 10905123 Incorrect Use of @Concurrent on Methods
1061**Error Message**<br>
1062\'@Concurrent\' can not be used on method, please use it on function declaration.
1063
1064**Description**<br>
1065This error code is reported when @Concurrent is used to decorate methods.
1066
1067**Possible Cause**<br>
1068The @Concurrent decorator is used to decorate methods.
1069
1070**Solution**<br>
1071Use the @Concurrent decorator only on function declarations, not on methods.
1072
1073## 10905227 The Name of a Custom Component Cannot Be the Same as That of a Built-in Component
1074**Error Message**<br>
1075The struct \'xxx\' cannot have the same name as the built-in component \'xxx\'.
1076
1077**Description**<br>
1078This error code is reported when the name of a custom component matches the name of a built-in component.
1079
1080**Possible Cause**<br>
1081The custom component has the same name as a built-in component.
1082
1083**Solution**<br>
1084Rename the custom component to a name that is different from any built-in component names.
1085
1086## 10905228 The Name of a Custom Component Cannot Be the Same as That of a Built-in Component Attribute Method
1087**Error Message**<br>
1088The struct \'xxx\' cannot have the same name as the built-in attribute \'xxx\'.
1089
1090**Description**<br>
1091This error code is reported when the name of a custom component matches the name of a built-in component attribute method.
1092
1093**Possible Cause**<br>
1094The custom component has the same name as an attribute method of a built-in component.
1095
1096**Solution**<br>
1097Rename the custom component to a name that is different from any built-in component attribute method names.
1098
1099## 10905229 Invalid Struct Decorator
1100**Error Message**<br>
1101The struct \'xxx\' can not be decorated with \'@ComponentV2\' and \'@Component\', \'@Reusable\', \'@CustomDialog\' at the same time.
1102
1103**Description**<br>
1104This error code is reported when a struct is decorated by multiple incompatible decorators such as @ComponentV2, @Component, @Reusable, and @CustomDialog.
1105
1106**Possible Cause**<br>
1107Multiple decorators that are not compatible with each other are used on the same struct.
1108
1109**Solution**<br>
1110Avoid using incompatible decorators on the same struct. Use only one appropriate decorator for the struct.
1111
1112## 10905230 Lack of Required Decorators for Child Components
1113**Error Message**<br>
1114Decorator \'@Component\', \'@ComponentV2\', or \'@CustomDialog\' is missing for struct \'xxx\'.
1115
1116**Description**<br>
1117TThis error code is reported when a child component is not decorated by @Component, @ComponentV2, or @CustomDialog.
1118
1119**Possible Cause**<br>
1120The child component is not decorated with the required decorators.
1121
1122**Solution**<br>
1123Make sure the child component is decorated by @Component, @ComponentV2, or @CustomDialog.
1124
1125## 10905402 Invalid Use of the @Entry Decorator
1126**Error Message**<br>
1127A page configured in \'main_pages.json\' or \'build-profile.json5\' must have one and only one \'@Entry\' decorator.
1128
1129**Description**<br>
1130This error code is reported when the @Entry decorator is missing or incorrectly used on the home page.
1131
1132**Possible Cause**<br>
1133The home page is not decorated with the @Entry decorator.
1134
1135**Solution**<br>
1136Make sure the home page has exactly one @Entry decorator.
1137
1138## 10905231 Invalid Number of the @Entry Decorators
1139**Error Message**<br>
1140A page can't contain more than one \'@Entry\' decorator.
1141
1142**Description**<br>
1143This error code is reported when multiple @Entry decorators are used on a single page.
1144
1145**Possible Cause**<br>
1146Multiple @Entry decorators are used on a single page.
1147
1148**Solution**<br>
1149Remove unnecessary @Entry decorators, making sure only one @Entry decorator is used on a page.
1150
1151## 10905404 Invalid Number of the @Preview Decorators
1152**Error Message**<br>
1153A page can contain at most 10 \'@Preview\' decorators.
1154
1155**Description**<br>
1156This error code is reported when more than 10 @Preview decorators are used on a single page.
1157
1158**Possible Cause**<br>
1159More than 10 @Preview decorators are used on the same page.
1160
1161**Solution**<br>
1162Remove unnecessary @Preview decorators, making sure a maximum of 10 @Preview decorators are used on a page.
1163
1164## 10905232 Invalid Struct Name
1165**Error Message**<br>
1166A struct must have a name.
1167
1168**Description**<br>
1169This error code is reported when a struct is not named.
1170
1171**Possible Cause**<br>
1172No name is provided for the struct.
1173
1174**Solution**<br>
1175Define a name for the struct.
1176
1177## 10905233 Lack of Required Decorators for Child Components
1178**Error Message**<br>
1179Decorator \'@Component\', \'@ComponentV2\', or \'@CustomDialog\' is missing for struct \'xxx\'.
1180
1181**Description**<br>
1182This error code is reported when a child component is not decorated with @Component, @ComponentV2, or @CustomDialog and is called by the parent component.
1183
1184**Possible Cause**<br>
1185The child component is not decorated with the required decorators.
1186
1187**Solution**<br>
1188Make sure the child component is decorated by @Component, @ComponentV2, or @CustomDialog before calling it.
1189
1190## 10905125 Incorrect Use of Multiple Decorators on the Same Member Property or Method
1191**Error Message**<br>
1192The member property or method can not be decorated by multiple decorators.
1193
1194**Description**<br>
1195This error code is reported when multiple decorators are used on the same member property or method.
1196
1197**Possible Cause**<br>
1198Multiple decorators are used on the same member property or method.
1199
1200**Solution**<br>
1201Remove redundant decorators and retain only one appropriate decorator.
1202
1203## 10905235 Invalid Component Name
1204**Error Message**<br>
1205The module name \'xxx\' can not be the same as the inner component name.
1206
1207**Description**<br>
1208This error code is reported when the name of a custom component matches the name of a built-in component.
1209
1210**Possible Cause**<br>
1211The custom component has the same name as a built-in component.
1212
1213**Solution**<br>
1214Change the name of the custom component to a name that is different from any built-in component names.
1215
1216## 10905236 Incorrect Component Use
1217**Error Message**<br>
1218UI component \'xxx\' cannot be used in this place.
1219
1220**Description**<br>
1221This error code is reported when the ArkUI built-in component is used outside the allowed context, such as outside the @Builder or build() method.
1222
1223**Possible Cause**<br>
1224The built-in component is used outside the @Builder or build() method, which does not meet the usage restrictions.
1225
1226**Solution**<br>
1227Use the built-in component within the @Builder method, build() method, or page transition method.
1228
1229## 10905237 Invalid Component Name
1230**Error Message**<br>
1231The struct name cannot contain reserved tag name: \'xxx\'.
1232
1233**Description**<br>
1234This error code is reported when the name of a custom component matches the name of an existing component.
1235
1236**Possible Cause**<br>
1237The custom component has the same name as an existing component.
1238
1239**Solution**<br>
1240Change the name of the custom component to a valid component name that is different from the existing component name.
1241
1242## 10905127 Invalid @Styles Declaration
1243**Error Message**<br>
1244Should not add return type to the function that is decorated by Styles.
1245
1246**Description**<br>
1247This error code is reported when functions decorated by @Styles return function types.
1248
1249**Possible Cause**<br>
1250The return value of the function decorated by @Styles is of the function type.
1251
1252**Solution**<br>
1253Do not declare the return value of a function decorated by @Styles as a function type.
1254
1255## 10905238 Invalid Struct Declaration
1256**Error Message**<br>
1257A struct declaration without the \'default\' modifier must have a name.
1258
1259**Description**<br>
1260This error code is reported when a struct declaration without the default modifier is not named.
1261
1262**Possible Cause**<br>
1263The struct is declared without the default modifier and is not named.
1264
1265**Solution**<br>
1266Name the struct correctly.
1267
1268## 10905128 Invalid @Extend Declaration
1269**Error Message**<br>
1270Should not add return type to the function that is decorated by Extend.
1271
1272**Description**<br>
1273This error code is reported when functions decorated by @Extend return function types.
1274
1275**Possible Cause**<br>
1276The return value of the function decorated by @Extend is of the function type.
1277
1278**Solution**<br>
1279Do not declare the return value of a function decorated by @Extend as a function type.
1280
1281## 10905129 Incorrect Mixed Use of @Computed and !!
1282**Error Message**<br>
1283A property decorated by \'xxx\' cannot be used with two-bind syntax.
1284
1285**Description**<br>
1286This error code is reported when the @Computed decorator is incorrectly used with two-way binding syntax.
1287
1288**Possible Cause**<br>
1289The @Computed decorator and two-way binding syntax are used together.
1290
1291**Solution**<br>
1292Do not use the @Computed decorator and two-way binding syntax together.
1293
1294## 10905130 Incorrect Use of @Computed on a Setter Method
1295**Error Message**<br>
1296A property decorated by \'xxx\' cannot define a set method.
1297
1298**Description**<br>
1299This error code is reported when the @Computed decorator is used on a setter method.
1300
1301**Possible Cause**<br>
1302The setter method is decorated using the @Computed decorator.
1303
1304**Solution**<br>
1305Use the @Computed decorator only on a getter method.
1306
1307## 10905358 !! Syntax Error
1308**Error Message**<br>
1309When the two-way binding syntax is used, do not assign a value to \'xxx\' variable \'yyy\' because the framework generates the default assignment.
1310
1311**Description**<br>
1312This error code is reported when a value is assigned to the variable in an @Event decorated method while two-way binding syntax is used.
1313
1314**Possible Cause**<br>
1315Two-way binding syntax is used and a value is passed to the @Event method.
1316
1317**Solution**<br>
1318When using two-way binding syntax, do not pass values to the @Event method. The ArkUI framework will handle the default assignment.
1319
1320## 10905241 Incorrect Mixed Use of @Reusable and @ReusableV2
1321**Error Message**<br>
1322The \'@Reusable\' and \'@ReusableV2\' decorators cannot be applied simultaneously.
1323
1324**Description**<br>
1325This error code is reported when @Reusable and @ReusableV2 are used together.
1326
1327**Possible Cause**<br>
1328Both @Reusable and @ReusableV2 are used to decorate a component.
1329
1330**Solution**<br>
1331Do not use @Reusable and @ReusableV2 together. Choose one appropriate decorator.
1332
1333## 10905242 Incorrect Use of @ReusableV2
1334**Error Message**<br>
1335\'@ReusableV2\' is only applicable to custom components decorated by \'@ComponentV2\'.
1336
1337**Description**<br>
1338This error code is reported when @ReusableV2 is used to decorate custom components that are not decorated by @ComponentV2.
1339
1340**Possible Cause**<br>
1341The @ReusableV2 decorator is used to decorate components that are not decorated by @ComponentV2.
1342
1343**Solution**<br>
1344Use @ReusableV2 only with custom components decorated by @ComponentV2.
1345
1346## 10905244 Incorrect Use of @ReusableV2
1347**Error Message**<br>
1348A custom component decorated with \'@Component\' cannot contain child components decorated with \'@ReusableV2\'.
1349
1350**Description**<br>
1351This error code is reported when components decorated by @Component contain child components decorated by @ReusableV2.
1352
1353**Possible Cause**<br>
1354A component decorated by @Component calls a child component decorated by @ReusableV2.
1355
1356**Solution**<br>
1357Do not call components decorated by @ReusableV2 within components decorated by @Component.
1358
1359## 10905245 Incorrect Use of @ReusableV2
1360**Error Message**<br>
1361A custom component decorated with \'@Reusable\' cannot contain any child components decorated with \'@ReusableV2\'.
1362
1363**Description**<br>
1364This error code is reported when components decorated by @Reusable contain child components decorated by @ReusableV2.
1365
1366**Possible Cause**<br>
1367A component decorated by @Reusable calls a child component decorated by @ReusableV2.
1368
1369**Solution**<br>
1370Do not call components decorated by @ReusableV2 within components decorated by @Reusable.
1371
1372## 10905246 Incorrect Use of @Reusable
1373**Error Message**<br>
1374A custom component decorated with \'@ReusableV2\' cannot contain child components decorated with \'@Reusable\'.
1375
1376**Description**<br>
1377This error code is reported when components decorated by @ReusableV2 contain child components decorated by @Reusable.
1378
1379**Possible Cause**<br>
1380A component decorated by @ReusableV2 calls a child component decorated by @Reusable.
1381
1382**Solution**<br>
1383Do not call components decorated by @Reusable within components decorated by @ReusableV2.
1384
1385## 10905359 Component Initialization Error
1386**Error Message**<br>
1387Property \'xxx\' must be initialized through the component constructor.
1388
1389**Description**<br>
1390This error code is reported when the variable decorated by @Require is not initialized during parent component construction.
1391
1392**Possible Cause**<br>
1393The variable decorated by @Require is not initialized during parent component construction.
1394
1395**Solution**<br>
1396Initialize variables decorated by @Require when constructing the parent component.
1397
1398## 10905247 Incorrect Use of @ReusableV2
1399**Error Message**<br>
1400The template attribute of the Repeat component cannot contain any custom component decorated with \'@ReusableV2\'.
1401
1402**Description**<br>
1403This error code is reported when **Repeat.template** contains custom components decorated by @ReusableV2.
1404
1405**Possible Cause**<br>
1406The **template** property of **Repeat** contains a custom component decorated by @ReusableV2.
1407
1408**Solution**<br>
1409Remove the component decorated by @ReusableV2 from the template property.
1410
1411## 10905248 Incorrect Use of the reuse Attribute
1412**Error Message**<br>
1413The reuse attribute is only applicable to custom components decorated with both \'@ComponentV2\' and \'@ReusableV2\'.
1414
1415**Description**<br>
1416This error code is reported when the **reuse** attribute is incorrectly applied to components that are not properly decorated for reuse functionality.
1417
1418**Possible Cause**<br>
1419The **reuse** attribute is not used with custom components that are decorated by both @ComponentV2 and @ReusableV2.
1420
1421**Solution**<br>
1422Use the **reuse** attribute only for custom components decorated by both @ComponentV2 and @ReusableV2.
1423
1424## 10905249 Incorrect Use of the reuseId Attribute
1425**Error Message**<br>
1426The reuseId attribute is not applicable to custom components decorated with both \'@ComponentV2\' and \'@ReusableV2\'.
1427
1428**Description**<br>
1429This error code is reported when **reuseId** is used for custom components decorated by @ComponentV2 and @ReusableV2.
1430
1431**Possible Cause**<br>
1432**reuseId** is used for custom components decorated by @ComponentV2 and @ReusableV2.
1433
1434**Solution**<br>
1435Use the **reuseId** attribute in the correct scenario.
1436