报错:
Syntax Error: ValidationError: Invalid options object. Stylus Loader has been initialized using an options object that does not match the API schema.
错误原因是因为stylus-loader的版本,首先要卸载当前版本的stylus-loader
yarn remove stylus-loader
重新安装指定版本的stylus-loader
yarn add stylus-loader@3.0.2
npm官网查看stylus-loader版本
https://www.npmjs.com/package/stylus-loader