Closed xibman closed 6 years ago
@xibman Are you talking about not released yet version (v3.0.0-beta.8) or stable (2.9.x) version?
the released version v3.0.0-rc.3
I've updated vue-cli via the "npm i vue-cli" command and got the 2.9.6 version of the vue-cli
i use npm install -g @vue/cli
thanks for the info
I've just updated node.js to 8.11.3, @vue/cli to v3.0.0-rc.3, cloned the https://github.com/surveyjs/surveyjs_vue_quickstart repo, run "npm i" and run "npm run dev" - everything works ok for me
Am I missing something?
Sorry you missing nothing, is my fault i did not explain all the process.
I think the problem came from webpack. You use webpack 2 to build surveys js project and the new vue-cli use webpack 4
After investigations we find out that the problem is in the library name :-) Folder "survey-vue" in "node_modules" with main file "survey.vue.js" is not working, but folder "survey-vu" in "node_modules" with main file named "survey.vu.js" is working ok :-)
@xibman Can you help us localize the problem with the @vue/cli? What causes the issue - vue-loader or loader plugin or something else...
I will try to find @tsv2013
I have the same kind of problems as @xibman. Will take a look again when surveyjs 1.0.33 is out.
Note that @vue/cli is now at v3.0.0-rc.5 and more updates may be coming soon.
Same problem with latest version of vue-cli and survey-vue
Same here - still doesn't work with the latest versions. Would it be hard to change the problematic filename, if upstream doesn't fix the root cause?
@kamidev we've created an issue in vue/cli repo (see the reference above). We believe that project functionality shouldn't depend on file names.
@dmitrykurmanov I saw your issue and I agree. Let's hope for the best!
Perhaps the ".vue" part of the name is misinterpreted as a file extension? For instance, vue-loader does look for extensions in order to parse Single File Components. That would explain this behavior.
it could be the solution : https://vue-loader.vuejs.org/migrating.html#importing-sfcs-from-dependencies
@xibman Yes, it could. But peolpe should to know it when starting from scratch... It's a kind of magic :-)
Yes, it is an unfortunate kind of magic. :-)
But even @yyx990803 himself says: ".vue.js is the special file extension used by vue-loader to match against Githubissues.
Are you requesting a feature, reporting a bug or asking a question?
Bug
What is the current behavior?
universalModuleDefinition?2436:1 Uncaught TypeError: Cannot read property 'Vue' of undefined
How would you reproduce the current behavior (if this is a bug)?
Just simply use the surveyjs_vue_quickstart to use surveyjs
Specify your