webpack-contrib / stylus-loader

:art: A stylus loader for webpack.
MIT License
498 stars 99 forks source link

unknown property 'preferPathResolver' #325

Closed sschneider-ihre-pvs closed 3 years ago

sschneider-ihre-pvs commented 3 years ago

Bug report

By removing the option preferPathResolver the interface to the signature got broken so that the webpack validator throws an error for unknown option

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:

  - validate.js:105 validate

  - NormalModule.js:547 Object.getOptions
    [<project>]/[webpack]/lib/NormalModule.js:547:19

https://github.com/webpack-contrib/stylus-loader/commit/da566a6#r56565818

Actual Behavior

Webpack throws an error for unknown option if preferPathResolver is provided.

Expected Behavior

preferPathResolver should be an option.

How Do We Reproduce?

https://github.com/quasarframework/quasar/issues/10448

alexander-akait commented 3 years ago

We don't have this option anymore, remove it from your configuration, you don't need this