Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SassError: Can't find stylesheet to import. - Angular upgrade

Recently I updated my angular application to version 14 and after the upgrade, I am getting the below error. The error is below

./src/assets/vendor/default/styles.scss - Error: Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
SassError: Can't find stylesheet to import.
  ╷
4 │ @import "~src/vendor/libs/ng2-nouislider/mixins";

Could anyone help to resolve this problem?

Thanks in advance

like image 422
az rnd Avatar asked Sep 03 '25 06:09

az rnd


1 Answers

For Angular 15. remove tilde symbol (~) from the path.

like image 136
ibrahimgb Avatar answered Sep 05 '25 01:09

ibrahimgb