Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find module 'vue/compiler-sfc' when using vue 2.7 and vue/cli-xxx 5.0.8 #100

Open
krkaa opened this issue Jul 20, 2022 · 0 comments

Comments

@krkaa
Copy link

krkaa commented Jul 20, 2022

I use externals modules in vue.config.js
..., chainWebpack: config => { config.externals(["vue", "vuex", "vue-router"]); }, ...
after running npm serve script i get this error:
image

If you install vue locally, then the error goes away, but then a render error appears:
image

In the webpack config, the value of "libraryTarget" is set to "system".

How to fix it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant