New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import some scss files into library component scss throw errors #1631
Comments
Any updates? |
The issue is that ng-packagr doesn't respect the Take for example an NPM package that has a {
"name": "@my-app/styles",
"version": "1.0.0",
"sass": "src/main.scss"
} If you attempt to consume that library within an ng-packagr library, it won't work.
This gets even more hacky if you want to use the modern Angular does in fact respect the |
@flash-me It's an issue because it's a convention that Angular follows, but ngpackagr does not. Respecting the |
@flash-me Tailwind uses the |
why cant this be fixed? |
Any workaround for this issue? |
Type of Issue
Description
when trying to import bootstrap mixins @import "~bootstrap/scss/mixins"; it throw the following error ERROR: Can't find stylesheet to import.
How To Reproduce
clone
https://github.com/robertIsaac/scss-reproduce
run ng build
Expected Behaviour
to build successfully
Version Information
Please include all version numbers that might be relevant, e.g. third-party libraries
bootstrap: 4.4.1
notes
this is created by suggestion of angular/angular-cli#17660 (comment)
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: