Question T5972
Visible to All Users

Survey JS Creator Vue - window is not defined

created 4 years ago

Hello!

I've tried this sample on my Nuxt project
https://codesandbox.io/s/mozhp?file=/src/App.vue:47-134

Clipboard-File-1.png

Every time i full refreshed the page, the attached screenshot of bug shows. But when I came from the parent page, and navigate it seems fine.

I'm trying it out this first before we purchased. any help why this problem occurs?

Answers approved by surveyjs Support

created 4 years ago

Hello,

SurveyJS Creator is supposed to be used as a client side component only. You can render it after a page has been loaded in a browser.
Unfortunately we don't have VueJS ninjas in our team and I can't advise you how to do it in proper way in NuxtJS.

Thanks, Serge
SurveyJS Team

    Show previous comments (1)

      Hello,

      SurveyJS Pro license includes all SurveyJS products which are available at this moment: SurveyJS Library, SurveyJS Creator, SurveyPDF, SurveyJS Analytics. You can read more about licenses here

      Thanks, Alex
      SurveyJS Team

        I mean can we still use(Creator, PDF, and Analytics) like normal if we didn't purchase the license version?

        I am not sure, what you mean. It will be definitely violation of our license agreement.

        Thank you,
        Andrew
        SurveyJS Team

          Hello,

          The only free product is the SurveyJS Library: survey-knockout, survey-vue, survey-angular and survey-react

          Other products - Creator, PDF, and Analytics - are commercial and you can't use them without buying a license.

          You can find more info on this page - https://surveyjs.io/Licenses

          Thanks, Serge
          SurveyJS Team

          created 4 years ago

          Hello,
          I could not reproduce the issue. What should we do?

          Thank you,
          Andrew
          SurveyJS Team

            Show previous comments (5)

              Hello,

              I've created a new NuxtJS project via "npx create-nuxt-app T5972-spa" command, added survey-creator component and it works ok for me.
              Here is the repo on our github - https://github.com/surveyjs/nuxtjs-surveyjs-spa
              Please feel free to modify it to reproduce your issue.

              Thanks, Serge
              SurveyJS Team

                I'm using SSR for our project.

                  Hello,

                  If you are asking about the server-side rendering then answer is "SurveyJS Creator is a client side JavaScript library and doesn't support server side rendering". The thing is that SurveyJS Creator (as well as survey runner) markup is dynamically re-rendered depending on different settings, options and question configuration and this markup re-build is performed on the client side in web browser without roundtrips to server.

                  Thanks, Serge
                  SurveyJS Team