question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
abroccolicommented, Jan 23, 2018

@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!

0reactions
DanielYKPancommented, Jan 21, 2018

@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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found