arielsalminen / vue-design-system

An open source tool for building UI Design Systems with Vue.js
https://vueds.com
MIT License
2.17k stars 223 forks source link

Getting vue loader error after import #188

Open owengot opened 5 years ago

owengot commented 5 years ago

I have modified the default Design System, adding one single component (which imports an svg file from the assets folder).

After running the system:build command and importing the system into my Vue project, I get the following error in my console:

Error: Module build failed (from ./node_modules/vue-loader/lib/index.js):
Error: [vue-loader] vue-template-compiler must be installed as a peer dependency, or a compatible compiler implementation must be passed via options.
    at loadTemplateCompiler (/Users/code/Desktop/Edgeryders/ER_Design_System/node_modules/vue-loader/lib/index.js:21:11)
    at Object.module.exports (/Users/code/Desktop/Edgeryders/ER_Design_System/node_modules/vue-loader/lib/index.js:65:35)

The odd thing is no errors came up before I made any modifications to the system - it worked normally. I have checked the installation of vue-template-compiler and it is installed as a peer dependency with the same versioning number as Vue (2.5.1.7). Any ideas?