Closed yuku closed 1 month ago
Hi @yuku, I suppose the issue occurs because the SurveyModel is being used within a SSR component. Take note that SurveyJS Form Library doesn't support server-side rendering. It works on a client-side only. You can find an example on how to integrate SurveyJS components to a Remix app at https://github.com/surveyjs/surveyjs-remix.
Should you have any further questions, please feel free to reach out to us.
@JaneSjs Moving import
statement to .client modules solves the issue. Thanks!
Are you requesting a feature, reporting a bug or asking a question?
reporting a bug
What is the current behavior?
causes the following error in a server:
and then we update the code as the error message suggests:
then the following error occurs on a browser:
screen shots
![image](https://github.com/user-attachments/assets/6f39b7b9-4a56-48eb-8164-4d971a8cc69e) ![image](https://github.com/user-attachments/assets/65283d5a-4d93-46a0-a3cf-5330ed2d1c3a)Same error happens with survey-react-ui package.
What is the expected behavior?
Can import and use.
How would you reproduce the current behavior (if this is a bug)?
npx create-remix@latest
npm install survey-react-ui --save
survey-core
to app/routes/_index.tsxnpm run dev
then open http://localhost:5173Or
Specify your