CSS import fails with Angular CLI: 1.6.4
See original GitHub issue@import "~@ng-pick-datetime/assets/style/picker.min.css";
Error:
./node_modules/css-loader?{"sourceMap":false,"import":false}!./node_modules/postcss-loader/lib?{"ident":"postcss","sourceMap":false}!./src/styles.css
Module build failed: Error: Can't resolve '~@ng-pick-datetime/assets/style/picker.min.css'
also fails without the ~
@import "@ng-pick-datetime/assets/style/picker.min.css";
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Error when loading CSS files from node_modules in Angular 5
I was using Angular CLI 1.6.6 and I updated it to 1.6.7 by running npm install -g @angular/cli@latest. This solved the issue.
Read more >How to Add Bootstrap to an Angular CLI project - Loiane Groner
1: Creating an Angular project with Angular CLI · 2: Installing Bootstrap from NPM. 2.1: Alternative: Local Bootstrap CSS · 3: Importing the...
Read more >Usage of Angular libraries published to npm
If a legacy JavaScript library is not imported into an application, you may add it to the runtime global scope and load it...
Read more >VS Code Angular Files - Visual Studio Marketplace
1.6.4. Fixed issues with module imports; Fixed issues with comments ... You can now leverage angular-cli resource generation options without ...
Read more >angularx-qrcode - npm
angularx-qrcode - Angular QR Code Generator ... --save # angular 5/6/7 npm install angularx-qrcode@1.6.4 --save # Angular 4 npm install ...
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
@DanielYKPan Thank you very much for taking a look. I was able to get it working in 1.6.4 as
@import "ng-pick-datetime/assets/style/picker.min.css"
I should probably update though!
@abroccoli I checked the angular cli github issue. Someone post this https://github.com/angular/angular-cli/issues/9296
I would suggest you upgrade your angular cli to 1.6.5