surveyjs / surveyjs_angular_cli

SurveyJS + Angular CLI Quickstart Template
http://surveyjs.io/
39 stars 52 forks source link

'SurveyPropertyEditorBase' incorrectly implements interface 'ILocalizableOwner'. #51

Open nolafs opened 3 years ago

nolafs commented 3 years ago

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

tsv2013 commented 3 years ago

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

gchovanyecz commented 3 years ago

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

apurv195 commented 3 years ago

@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