Ngx-ui-switch issue with angular version 16

spider007

Siddharath Sharma

Posted on March 4, 2024

Ngx-ui-switch issue with angular version 16

Hello,
I am upgrading angular version 11 to 16 in this case when updated in angular 16 then getting following error -
/src/assets/scss/app.scss?ngGlobalStyle - Error: Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js):
HookWebpackError: Module build failed (from ./node_modules/@angular-devkit/build-angular/node_modules/sass-loader/dist/cjs.js):
SassError: Can't find stylesheet to import.
5 │ @import '~ngx-ui-switch/ui-switch.component.scss';
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src\assets\scss\custom\plugins_switch.scss 5:9 @import
src\assets\scss\app.scss 51:9 root stylesheet

so how to fix this error. please help !
Thanks in advance !

💖 💪 🙅 🚩
spider007
Siddharath Sharma

Posted on March 4, 2024

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related