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

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

Open
iamfariba opened this issue May 17, 2019 · 3 comments
Labels

Comments

@iamfariba
Copy link

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]
},

@dk981234
Copy link
Contributor

dk981234 commented May 29, 2019

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

@iamfariba
Copy link
Author

Hi,

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

Thank you

@dk981234
Copy link
Contributor

dk981234 commented Jun 4, 2019

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

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

3 participants