ERROR Failed to compile with 1 errors 

Failed to resolve loader: stylus-loader
You may need to install it.

 依照错误说法: 就是缺少了一个运行依赖;只需按照提示,将其安装就可

如果你在Vue脚手架项目中应用了 lang="stylus" (我这里用了某款插件,然后快捷输入了lang="stylus"),那么你需要在项目中添加该依赖

 

在项目目录下输入

npm install -save-dev stylus stylus-loader  //-save将模块安装到项目目录下,-dev在package文件的devDependencies节点写入依赖 

照理来说应该是好了。

 

这次主要如何看错误

相关文章:

  • 2021-05-27
  • 2022-12-23
  • 2022-12-23
  • 2021-04-18
  • 2021-10-16
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-19
  • 2021-10-23
  • 2021-10-05
  • 2022-12-23
  • 2021-09-26
  • 2021-05-25
  • 2021-10-15
相关资源
相似解决方案