Closed sem1colon closed 4 years ago
survey-angular
library works with Angular 2+
Original discussion is here - https://surveyjs.answerdesk.io/ticket/details/t3976/how-to-fix-knockout-type-errors-for-angular-6
That doesn't solve. Any other solution?
@sem1colon You are asking the same question in two places - here and on our portal - https://surveyjs.answerdesk.io/ticket/details/t3976/how-to-fix-knockout-type-errors-for-angular-6
In what place do you prefere to discuss the question?
Lol, I thought that two different guys replying to me. Sorry about that. I'm happy to discuss here because GitHub will have more reach & it will be useful to someone in the future. By the way, Did you check my project?
Sure. I'll look into it and write here.
I've checked your project. I've made it work via: removing the
"survey-knockout": "^1.7.4",
and adding the
"@types/knockout": "^3.4.67",
in the package.json
file.
But this is bad indeed, We have other corresponding issue in our answerdesk - https://surveyjs.answerdesk.io/ticket/details/t3116/trying-to-determine-which-version-of-survey-angular-and-associated-libraries-to-use-with
I've moved this task up in our task queue
@tsv2013 Thanks for the workaround. Hope, it will be fixed in the future release. And, I must appreciate for your quick responses to the inquiry.
I've fixed the issue via the https://github.com/surveyjs/survey-library/commit/95d6e5c14e95f73505fc5e5d104646bcdb4c4af4 commit.
Now survey.angular.d.ts
file doesn't reference knockoutjs library. Fix will be available in the 1.7.6 update most likely next tuesday. Could you check it on your side?
@tsv2013 I am still getting the same type errors.
FYI, I installed both survey-angular & survey-knockout to the latest version(1.7.5) and installed @types/knockout
as well.
However, when I checked this on stackblitz, no type errors are coming. But when I tried local, I was getting errors.
@sem1colon If you are using the survey-angular
library without survey-creator, you needn't to install neither survey-knockout
nor @types/knockout
types lbraries. Is it your case?
Your local project can lock reference versions in the package-lock.json
file. Could you remove this file, remove the node_modules
folder, reinstall packages via npm i
and try again?
SurveyJS library works only with Angular 7+? I'm getting type errors for knockout. Is there a supported version for Angular 6?