Skip to content

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

@krkaa

Description

@krkaa

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions