Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatibility issue with sass-loader, Error: Sass Loader has been initialised using an options object that does not match the API schema. - options has an unknown property 'importer'. #68

Open
sainisagar310 opened this issue Jan 8, 2020 · 5 comments

Comments

@sainisagar310
Copy link

The version 1.0.8 (latest) of antd-scss-theme-plugin is not compatible with sass-loader(8.0.0) latest. It shows the following error:

Invalid options object. Sass Loader has been initialised using an options object that does not match the API schema. options has an unknown property 'importer'. These properties are valid: object { implementation?, sassOptions?, prependData?, sourceMap?, webpackImporter? }

@tomer-dev
Copy link

@sainisagar310 Waiting for the same isue.

Looks like the lib is valid, waiting for importer - which makes the ERROR issue to be suspicious.

Using Webpack 3, and verified the package libraries are ok.

ERROR in ./frontend/modules/Home/components/MatrixView/MatrixView.scss (./node_modules/css-loader/dist/cjs.js??ref--8-1!./node_modules/antd-scss-theme-plugin/build/dist/lib/antdSassLoader.js??ref--8-2!./frontend/modules/Home/components/MatrixView/MatrixView.scss)
Module build failed (from ./node_modules/antd-scss-theme-plugin/build/dist/lib/antdSassLoader.js):
Invalid options object. Sass Loader has been initialized using an options object that does not match the API schema.

  • options has an unknown property 'importer'. These properties are valid:
    object { implementation?, sassOptions?, prependData?, sourceMap?, webpackImporter? }

@cdwieber
Copy link

I managed to work around this for the time being by downgrading sass-loader to 7.3.1.

@sahina
Copy link

sahina commented Jan 29, 2020

@cdwieber is the issue related to sass-loader v8 and above? how did u end up with 7.3.1?

@tomer-dev
Copy link

tomer-dev commented Jan 29, 2020 via email

@yangehappy
Copy link

I meet the same situation,my sass-loader version is 8.0.2, I downgrade it to 7 to resolve the error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants