ERROR Failed to compile with 1 errors
Failed to resolve loader: stylus-loader
You may need to install it.
在项目目录下输入
npm
install
-save-dev stylus-loader //将模块安装到项目目录下,并在package文件的devDependencies节点写入依
照理来说应该是好了,但是还是有问题
ERROR Failed to compile with 1 errors
error in ./src/components/testContainer.vue?vue&type=style&index=0&id=6ca73acf&lang=stylus&scoped=true
Module build failed (from ./node_modules/stylus-loader/index.js):
Error: Cannot find module 'stylus'
可以看到Error后又要让我们安装一个‘stylus’
npm install -save-dev stylus
这次主要如何看错误
来源:博客园
作者:Xuhua123
链接:https://www.cnblogs.com/xuhua123/p/11489758.html