vue报错This dependency was not found

vue

vscode+vue报错This dependency was not found:

  • @views/login in ./src/router/index.js

    To install it, you can run: npm install --save @views/login

    只要把引入路径去掉@就可以了


    出现严重问题,第二次运行时又报错了,在网上看的

    在命令行中分别输入一下命令:

    npm install node-sass --save

    npm install sass-loader --save

    npm install scss --save

    npm install scss-loader --save

    又加上@就对了,不清楚哪个起了作用,先记着

以上是 vue报错This dependency was not found 的全部内容, 来源链接: utcz.com/z/376846.html

回到顶部