Question T14793
Visible to All Users

Problem building react

created a year ago

We follow your instruction to integrate the survey library in react app.

When run yarn build we obtain this error.

node_modules/survey-core/defaultV2.min.css
ParserError: Syntax Error at line: 1, column 34

We use node 14.19.0.

Comments (3)

    Hello,
    From what I gather, you installed the survey-react-ui npm package of the latest version.

    Would you please share additional details about the error?

    MC MC
    Miguel Carrallo a year ago

      survey-react-ui: "^1.9.109",

        Hello,
        Thank you for the clarification. Unfortunately, it is difficult to determine what may went wrong. As an option, you can try reinstalling the survey-react-ui package and installing it again. Also, check whether npm shows any warnings and suggests to fix them using the npm audit fix command.

        I look forward to your reply.

        Answers

        created a year ago (modified a year ago)

        To solve and allow compile project we delete node_modules/survey-core/defaultV2.min.css and insert in the html across link.

        Now, the compiler dont use this file.

          Comments (2)

            Thank you for the update.

            Please feel free to contact us if you have further questions.

              Hi Miguel,
              For your reference: you can review our get-started-library/react example. It is built correctly with Node 14.

              We hope it may help. Please feel free to contact us if you have any further questions.