vue add element conflits with vue cli
PierreREN opened this issue · 2 comments
PierreREN commented
I generated a new project using vue cli and import Element-UI using "vue add element", and error occurred as below:
Running completion hooks...error:
Unexpected use of file extension "js" for "./plugins/element.js" (import/extensions) at src\main.ts:5:8:
At the same time, all my router settings failed to be used and App.vue will always be reached no matter what url is input.
wanmu9966 commented
求怎么解决的
PierreREN commented
@wanmu9966 不使用“vue add element”,手动引入。vue add element命令会导致App.vue中的router-view部分被覆盖。