Question T22252
Visible to All Users

surveyjs with vite build is not working

created 23 days ago (modified 23 days ago)

Hi,

We are trying to use surveyjs in our react+vite app.

Getting following error

Unexpected Application Error!

You seem to be using a value for 'content' without quotes, try replacing it with `content: '"spg-panel__content"'`

Code
Error: You seem to be using a value for 'content' without quotes, try replacing it with `content: '"spg-panel__content"'` at zie (https://employers.dev.youscience.com/assets/js/index.js:400:1096) at nOt (https://employers.dev.youscience.com/assets/js/index.js:405:305) at $z (https://employers.dev.youscience.com/assets/js/index.js:400:2074) at nOt (https://employers.dev.youscience.com/assets/js/index.js:405:534) at $z (https://employers.dev.youscience.com/assets/js/index.js:400:2074) at g4 (https://employers.dev.youscience.com/assets/js/index.js:405:905) at https://employers.dev.youscience.com/assets/js/index.js:405:2954 at https://employers.dev.youscience.com/assets/js/index.js:405:1909 at AP (https://employers.dev.youscience.com/assets/js/index.js:120:388) at nOe (https://employers.dev.youscience.com/assets/js/index.js:136:3365)

Along with this, we are also getting vite dev server error. not able to load core css files using

Code
import 'survey-core/survey-core.min.css'; import 'survey-creator-core/survey-creator-core.min.css';

Do you have any fixes or sample which using vite build?

We are about to proceed with license once I cleared my POC.

Thanks,
Venu

Show previous comments (3)

    After upgrading with my vite version, seems build working fine.

    The event which I mentioned not triggering when I change the theme itself like from Light to Dark from the drop down?

    I just want to listen the theme name selection change to save user preferences, so that when they reopen my app, i can set the last selected theme.

    Right Now I am doing that in save button click event, but I want to do that in right after user selects the theme.

      By the way, you are really cool and thanks for your prompt response.

        Hello Venu,
        Thank you for the update. I'm happy to hear that you managed to solve the issue. To process your recent inquiry in the most efficient manner, I created a separate ticket on your behalf: T22292: Save the selected creator theme. We placed it in our processing queue and will process it shortly.