If we want to run above mentioned example with webpack, we get the following error:
7.20f33ed74093b152989d.js:7 Uncaught (in promise) TypeError: Class extends value undefined is not a constructor or null
at a (7.20f33ed74093b152989d.js:7:128838)
at 7.20f33ed74093b152989d.js:7:129436
at ./src/vue/base.ts (7.20f33ed74093b152989d.js:7:130521)
at n (7.20f33ed74093b152989d.js:1:1053342)
at ./node_modules/ts-loader/index.js?!./node_modules/vue-loader/lib/index.js?!./src/vue/survey.vue?vue&type=script&lang=ts& (7.20f33ed74093b152989d.js:1:1185728)
at n (7.20f33ed74093b152989d.js:1:1053342)
at ./src/vue/survey.vue?vue&type=script&lang=ts& (7.20f33ed74093b152989d.js:7:234491)
at n (7.20f33ed74093b152989d.js:1:1053342)
at ./src/vue/survey.vue (7.20f33ed74093b152989d.js:7:234033)
at n (7.20f33ed74093b152989d.js:1:1053342
Wild guess would be a circular dependency.
Any idea how to run your example in a project with webpack?
Hello MatthiasLeu,
Since the original example doesn't use Webpack, it's hard to tell what might be wrong. Could you please attach your project so that we could examine it more closely.
Thank you,
Roman
SurveyJS Team
Hmm, that might be a bit difficult because it is a huge project for a shopify page. It might take us days to extract a minimal case.
You can check the effect/error here (devtools console):
https://cvi5cdabahjs2ho8-27732017249.shopifypreview.com/pages/survey
Let me know if that helps, if not we will try to build a new project that leads to the issue.
I created a Vue 2 + Webpack app from scratch and added the code from the Get Started tutorial, but still couldn't see the error. I'm attaching my project. Please see if you can reproduce the issue in it.
Thanks, that is very helpful.
I went ahead and enhanced the config a little bit with a minimal set of stuff we usually use. I feel the reason might be that we use Vue3.
Pls check attached edited project of yours that shows that error emerging.
Have you ever thought of updating your project to vue3 since your dependencies are quite outdated and upgrading from vue2 to vue3 is usually really easy.