Skip to content

Survey doesn't work #4004

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

Closed
datho7561 opened this issue Mar 20, 2024 · 0 comments · Fixed by #4009
Closed

Survey doesn't work #4004

datho7561 opened this issue Mar 20, 2024 · 0 comments · Fixed by #4009
Assignees
Labels
Milestone

Comments

@datho7561
Copy link
Contributor

When I open the survey, I am greeted with a blank page.

In the error logs, I have the following:

survey-core has version '1.9.121' and survey-react-ui has version '1.9.134'. SurveyJS libraries should have the same versions to work correctly.
Uncaught TypeError: Cannot read properties of undefined (reading 'renderAs')
    at ./src/react/reactquestion_element.tsx.SurveyElementBase2.renderLocString (index.js:120172:129)
    at ./src/react/reactquestion_element.tsx.SurveyElementBase2.renderLocString (index.js:120289:49)
    at ./src/react/boolean.tsx.SurveyQuestionBoolean2.renderElement (index.js:112244:161)
    at ./src/react/reactquestion_element.tsx.SurveyElementBase2.render (index.js:120209:38)
    at finishClassComponent (index.js:15180:41)
    at updateClassComponent (index.js:15148:34)
    at beginWork (index.js:16250:24)
    at HTMLUnknownElement.callCallback2 (index.js:5636:24)
    at Object.invokeGuardedCallbackDev (index.js:5661:26)
    at invokeGuardedCallback (index.js:5695:41)
index.js:16871 The above error occurred in the <SurveyQuestionBoolean2> component:

    at SurveyQuestionBoolean2 (https://file+.vscode-resource.vscode-cdn.net/home/davthomp/Documents/Projects/vscode-openshift-tools/out/feedbackViewer/index.js:112181:42)
    at div
    at div
    at SurveyQuestion2 (https://file+.vscode-resource.vscode-cdn.net/home/davthomp/Documents/Projects/vscode-openshift-tools/out/feedbackViewer/index.js:118900:42)
    at div
    at SurveyRowElement2 (https://file+.vscode-resource.vscode-cdn.net/home/davthomp/Documents/Projects/vscode-openshift-tools/out/feedbackViewer/index.js:116627:42)
    at div
    at SurveyRow2 (https://file+.vscode-resource.vscode-cdn.net/home/davthomp/Documents/Projects/vscode-openshift-tools/out/feedbackViewer/index.js:123599:42)
    at div
    at SurveyPage2 (https://file+.vscode-resource.vscode-cdn.net/home/davthomp/Documents/Projects/vscode-openshift-tools/out/feedbackViewer/index.js:117340:37)
    at div
    at div
    at div
    at div
    at form
    at div
    at div
    at Survey3 (https://file+.vscode-resource.vscode-cdn.net/home/davthomp/Documents/Projects/vscode-openshift-tools/out/feedbackViewer/index.js:118430:42)
    at div
    at FeedbackComponent

Consider adding an error boundary to your tree to customize error handling behavior.
Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.

Aside: we should add an error boundary to this page, like we have done with the devfile registry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment