Skip to content

Survey doesn't work #4004

@datho7561

Description

@datho7561

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

Metadata

Metadata

Labels

Type

No type

Projects

Status

✅ Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions