I have installed modern-normalize in my project, and from a sass file I'm trying to include it's css file like so:
@use '~modern-normalize/modern-normalize' as *;
I keep getting this however:
Error: Can't find stylesheet to import. ╷ 9 │ @use '~modern-normalize/modern-normalize' as *; │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Even though in my IDE (vscode) I can CMD+Click on this and it navigates and opens the file just fine, I see in my node_modules dir
Am I missing something config related perhaps?
Your path looks odd, the tilde
~prefix start of the path tells used to css-loader to resolve the import "like a module", starting from the node_modules directory.However Angular has deprecated the use of
~for Sass@useand@importstatements.See https://github.com/angular/components/commit/f2ff9e31425f0e395e6926bcaf48f876688000d8
So try removing it. e.g.