Skip to content

CSS Loader options 'onlyLocals' property not valid #17

@semajtwin

Description

@semajtwin

Hi, first of all thanks for this module.

I'm having an issue when setting up one of our projects with nextjs and this module. Got an error for CSS Loader:

image

ValidationError: Invalid options object. CSS Loader has been initialized using an options 
object that does not match the API schema.
 - options has an unknown property 'onlyLocals'. These properties are valid:   
   object { url?, import?, modules?, icss?, sourceMap?, importLoaders?, esModule? }

I got around it by removing onlyLocals from withStyles.js.

onlyLocals: isServer,

I have created a repo with the same issue here just in case: https://github.com/semajtwin/webdeb-css-loader-issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions