antd-scss-theme-plugin icon indicating copy to clipboard operation
antd-scss-theme-plugin copied to clipboard

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'.

Open sainisagar310 opened this issue 5 years ago • 5 comments

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? }

sainisagar310 avatar Jan 08 '20 11:01 sainisagar310

@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? }

tomer-dev avatar Jan 28 '20 00:01 tomer-dev

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

cdwieber avatar Jan 28 '20 03:01 cdwieber

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

sahina avatar Jan 29 '20 00:01 sahina

As Chris suggested - 7.3.1 resolved it for me as well.

בתאריך יום ד׳, 29 בינו' 2020, 2:26, מאת Altug Sahin ‏< [email protected]>:

@cdwieber https://github.com/cdwieber is the issue related to sass-loader v8 and above? how did u end up with 7.3.1?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/intoli/antd-scss-theme-plugin/issues/68?email_source=notifications&email_token=AIXBBZDSX3HAWJFAG47QOA3RADELDA5CNFSM4KEGUAAKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKFQUJQ#issuecomment-579537446, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIXBBZBPJFPQ5RUALGXV3KLRADELDANCNFSM4KEGUAAA .

tomer-dev avatar Jan 29 '20 08:01 tomer-dev

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

yangehappy avatar Apr 13 '20 11:04 yangehappy