surveyjs_angular_cli
surveyjs_angular_cli copied to clipboard
'SurveyPropertyEditorBase' incorrectly implements interface 'ILocalizableOwner'.
Why i am getting this error?
Error: node_modules/surveyjs-editor/surveyeditor.d.ts:1327:22 - error TS2420: Class 'SurveyPropertyEditorBase' incorrectly implements interface 'ILocalizableOwner'. Property 'getRenderer' is missing in type 'SurveyPropertyEditorBase' but required in type 'ILocalizableOwner'.
1327 export declare class SurveyPropertyEditorBase implements Survey.ILocalizableOwner { ~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/survey-knockout/survey.ko.d.ts:2654:9 2654 getRenderer(name: string): string; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 'getRenderer' is declared here.
Cheers Olaf
Most likely you need to re-install node modules in your project
@nolafs install survey-knockout package too as dependency at the same version than the survey-creator it will fix it. Btw the core problem is survey-creator owns the survey-knockout as dependency but it has ^version lock, witch means for npm it can upgrade the minor versions too. So the installed creator version will lower than the knockout version.
@nolafs i have uninstall survey-knockout & install same version as survey-creator, like
"survey-creator": "^1.7.20", "survey-knockout": "^1.7.20",
it works for me