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

Not possible to load svg icons #194

Open garf opened 4 years ago

garf commented 4 years ago

I installed Vue Design System separately and importing to my existing Vue project. Usual components work, but with Icon component I receive this error:

ERROR  Failed to compile with 2 errors                                                                                                    3:10:36 PM

These dependencies were not found:

* @/assets/icons/ in ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/vue-design-system/src/elements/RpIcon.vue?vue&type=script&lang=js&
* @/utils/tokenSelect in ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/vue-design-system/src/elements/RpIcon.vue?vue&type=script&lang=js&

To install them, you can run: npm install --save @/assets/icons/ @/utils/tokenSelect

Do you know what can be the problem?