Skip to content

ValidationError: Invalid options object. Stylus Loader has been initialized using an options object that does not match the API schema. #5947

@VinceFanZ

Description

@VinceFanZ

Version

4.5.7

Environment info

"stylus-loader": "^4.1.1",

Steps to reproduce

install stylus-loader@4.x

npm run serve

What is expected?

stylus compile successfully

What is actually happening?

 ERROR  Failed to compile with 1 errors                                                                                                                                10:42:34 PM

 error  in ./src/App.vue?vue&type=style&index=0&id=7ba5bd90&lang=stylus&scoped=true

Module build failed (from ./node_modules/stylus-loader/dist/cjs.js):
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? }

image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions