Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
nolafs opened this issue Jan 26, 2021 · 3 comments
Labels

Comments

@nolafs
Copy link

nolafs commented Jan 26, 2021

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
Copy link
Member

tsv2013 commented Jan 28, 2021

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

@gchovanyecz
Copy link

@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
Copy link

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants