import some scss files into library component scss throw errors
See original GitHub issueType of Issue
[x] Bug Report
[ ] Feature Request
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
$ node_modules/.bin/ng-packagr --version
ng-packagr: 9.1.3
@angular/compiler: 9.1.4
rollup: 2.7.5
tsickle:
typescript: 3.8.3
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 https://github.com/angular/angular-cli/issues/17660#issuecomment-625194173
i do another two imports and they are working fine
@import "~boosted/scss/functions";
@import "~boosted/scss/variables";
@import "~boosted/scss/mixins";
and changing the import to
@import "~boosted/scss/_mixins";
will make the build run successfully
it can be related to that there is a directory named mixins
inside the bootstrap/scss directory, it’s just a a guess
Issue Analytics
- State:
- Created 3 years ago
- Reactions:5
- Comments:5
Top Results From Across the Web
import some scss files into library component scss throw errors
when trying to import bootstrap mixins @import "~bootstrap/scss/mixins"; it throw the following error ERROR: Can't find stylesheet to import.
Read more >How to import SCSS library with assets in Angular application?
scss , I'm getting a compilation error, because the compiler can't resolve the path to the image for some reason, however, the path...
Read more >sass-loader - webpack - JS.ORG
webpack is a module bundler. Its main purpose is to bundle JavaScript files for usage in a browser, yet it is also capable...
Read more >Angular - Shortcut to Importing Styles Files in Components
In a typical Angular project, you'll have many components. Each components has it own stylesheet (css, scss, less, etc).
Read more >Solving the React Error: Not Picking Up CSS Style | Pluralsight
This error is generated because the compiler is only able to import files from the src folder. Here, the CSS file is saved...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Any updates?
why cant this be fixed? who is holding down this repo? this should have been part of the functionality prior to this even being public is the code that brittle?