surveyjs_angular_cli icon indicating copy to clipboard operation
surveyjs_angular_cli copied to clipboard

'SurveyPropertyEditorBase' incorrectly implements interface 'ILocalizableOwner'.

Open nolafs opened this issue 4 years ago • 3 comments

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

nolafs avatar Jan 26 '21 16:01 nolafs

Most likely you need to re-install node modules in your project

tsv2013 avatar Jan 28 '21 17:01 tsv2013

@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.

gchovanyecz avatar Mar 01 '21 12:03 gchovanyecz

@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

apurv195 avatar Jun 24 '21 10:06 apurv195