You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this affect only libraries
when trying to import bootstrap mixins @import "~bootstrap/scss/mixins"; it throw the following error ERROR: Can't find stylesheet to import.
but the exact same code in a normal project build successfully
Thus, this issue is not caused by Angular CLI. I suggest you open a feature request to ng-packagr to create it's own importer or node-sass-tilde-importer to add the implementation to be similar to sass-loader.
Note: ~ is non standard way to import from node_modules, my personal recommendation would be to use style include paths and remove the ~ import.
🐞 Bug report
Command (mark with an
x
)Is this a regression?
not sure
Description
this affect only libraries
when trying to import bootstrap mixins
@import "~bootstrap/scss/mixins";
it throw the following errorERROR: Can't find stylesheet to import.
but the exact same code in a normal project build successfully
🔬 Minimal Reproduction
clone
https://github.com/robertIsaac/scss-reproduce
run
ng build
🔥 Exception or Error
🌍 Your Environment
Anything else relevant?
i do another two imports and they are working fine
and changing the import to
@import "~boosted/scss/_mixins";
will make the build run successfullyit can be related to that there is a directory named
mixins
inside the bootstrap/scss directory, it's just a a guessThe text was updated successfully, but these errors were encountered: