今天爱分享给大家带来Syntax Error: ValidationError:Invalid options object.Stylus Loader【解决方法】,希望能够帮助到大家。
报错信息如下:
Syntax Error: ValidationError: Invalid options object. Stylus Loader has been initialized using an options object that does not match the API schema.
- options has an unknown property 'preferPathResolver'. These properties are valid:
object { stylusOptions?, sourceMap?, webpackImporter?, additionalData? }
原因是安装的stylus是最新版本的,网上的信息说换一个版本就可以解决。于是乎安装下面的版本
npm install stylus-loader@3.0.2
原文链接:http://blog.itblood.com/4854.html,转载请注明出处。

![妈妈和我的秘密0.5.0汉化版 [欧美SLG/汉化/动态]](/wp-content/uploads/replace/2025/07/18/a142a5332df95d5caee1f0b6a524011a.webp)