single-spa / single-spa-vue

a single-spa plugin for vue.js applications

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

krkaa opened this issue · comments

commented

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?