antd-scss-theme-plugin
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'.
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 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? }
I managed to work around this for the time being by downgrading sass-loader to 7.3.1.
@cdwieber is the issue related to sass-loader v8 and above? how did u end up with 7.3.1?
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 .
I meet the same situation,my sass-loader version is 8.0.2, I downgrade it to 7 to resolve the error.