stylus-loader安装问题

823 阅读1分钟

安装命令:

npm install stylus --save
npm install stylus-loader --save

错误信息:Module build failed: TypeError: this.getOptions is not a function at Object.stylusLoader

原因: stylus-loader安装的版本过高

输入以下命令:

npm uninstall stylus-loader
npm install stylus-loader@3.0.2  --save-dev  

问题解决:

image.png