You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
...is missing the following properties from type 'IQuestionToolboxItem': iconName, className
Error: src/app/survey-creator/survey-creator.component.ts:35:11 - error TS2739: Type '{ name: string; title: string; json: { type: string; autocomplete: string; hideNumber: boolean; maxLength: number; maskType: string; maskSettings: { pattern: string; }; placeholder: string; }; }' is missing the following properties from type 'IQuestionToolboxItem': iconName, className
An argument for 'index' was not provided.
node_modules/survey-creator-core/typings/toolbox.d.ts:75:48
75 addSubitem?(subitem: IQuestionToolboxItem, index: number): void;
~~~~~~~~~~~~~
An argument for 'index' was not provided.
Cannot invoke an object which is possibly 'undefined'
TS2722: Cannot invoke an object which is possibly 'undefined'.
The text was updated successfully, but these errors were encountered:
RomanTsukanov
changed the title
TS compilation errors when adding a new sub-item configuration using the addSubitem function
Toolbox: TypeScript throws compilation errors when adding a new toolbox subitem
Sep 10, 2024
T19740 - TS compilation errors for an IQuestionToolboxItem object passed to the addSubitem function
https://surveyjs.answerdesk.io/internal/ticket/details/T19740
creator-angular.zip
The following compilation errors occur:
...is missing the following properties from type 'IQuestionToolboxItem': iconName, className
An argument for 'index' was not provided.
Cannot invoke an object which is possibly 'undefined'
The text was updated successfully, but these errors were encountered: