surveyjs_angular_cli icon indicating copy to clipboard operation
surveyjs_angular_cli copied to clipboard

error in answer of barrating question with after npm install, cause of survey-angular

Open iamfariba opened this issue 5 years ago • 3 comments

I have this error after click on "complete method" if i answer to barrating question which is css-star, ERROR RangeError: Maximum call stack size exceeded at QuestionDropdown.Base.getPropertyValueCore (webpack-internal:///./node_modules/survey-angular/survey.angular.js:1502) at QuestionDropdown.Base.getPropertyValue (webpack-internal:///./node_modules/survey-angular/survey.angular.js:1495) at QuestionDropdown.get [as questionValue] (webpack-internal:///./node_modules/survey-angular/survey.angular.js:9223) at QuestionDropdown.Question.getValueCore (webpack-internal:///./node_modules/survey-angular/survey.angular.js:9565) at QuestionDropdown.get [as value] (webpack-internal:///./node_modules/survey-angular/survey.angular.js:9249) at question.valueChangedCallback (webpack-internal:///./node_modules/surveyjs-widgets/surveyjs-widgets.js:570) at QuestionDropdown.Question.fireCallback (webpack-internal:///./node_modules/survey-angular/survey.angular.js:8999) at QuestionDropdown.Question.setQuestionValue (webpack-internal:///./node_modules/survey-angular/survey.angular.js:9596) at QuestionDropdown.QuestionSelectBase.setQuestionValue (webpack-internal:///./node_modules/survey-angular/survey.angular.js:13362) at QuestionDropdown.Question.setValueCore (webpack-internal:///./node_modules/survey-angular/survey.angular.js:9568) defaultErrorLogger @ webpack-internal:///./node_modules/@angular/core/esm5/core.js:1665


If i do not run "npm install" and i work with my old survey-angular in nodeModules which i got in february then i will not have that error, but if i run "npm install" then i will have that error after click on "complete" button,

**with other question does not have error, only if i answer to this question which is barrating css-stars then i have that error and the answer of this question wont be added to the result object, my barrating question is like this: { "type": "barrating", "name": "question-rate-experience", "title": "How would you rate", "ratingTheme": "css-stars", "choices": [1, 2, 3, 4, 5] },

iamfariba avatar May 17 '19 02:05 iamfariba

Hello I' ve checked this case in this repo, and it workes fine. Could you please provide some steps to reproduce this problem or your project? Thanks, Dmitriy SurveyJS Team

dk981234 avatar May 29 '19 15:05 dk981234

Hi,

Thank you for your answer, Is it possible i send you my files? how can i send it?

Thank you

iamfariba avatar Jun 03 '19 17:06 iamfariba

Hello Please check our angular.json file in the root of repo. There are configs which you should include in your project to use barrating question. Please, try it. If you don't get the result then give us the link on the repo with your example. Thanks, Dmitriy SurveyJS Team

dk981234 avatar Jun 04 '19 07:06 dk981234