-
Notifications
You must be signed in to change notification settings - Fork 12k
ERROR in ./node_modules/css-loader?{"sourceMap":false,"importLoaders":1}!./node_ modules/postcss-loader/lib?{"ident":"postcss","plugins":[null,null,null],"source Map":false}!./node_modules/bootstrap/dist/css/bootstrap.css #9080
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
Comments
I am seeing this issue but my project doesn't use bootstrap. |
Facing the same issue as mentioned above.
|
Closing as a duplicate of #9020. |
Actually the problem is not happening for "bootstrap": "4.0.0-beta.2", so I have to shift to "bootstrap": "4.0.0-beta.3" in order to continue the project.I have updated the "^bootstrap": "4.0.0-beta.3" in th package.json file and run "npm install" and "ng serve".The problem is not happening in that case. Package.json{ npm installng serve |
this is related to: |
Im also getting some wierd mixup in the path characters: Module not found: Error: Can't resolve './....node_modules☼ont-awesome☼onts☼ontawesome-webfont.eot' in 'c:\Users<user_name>\Desktop<project>\src' it seems everything after the / is either missing or is using some kind of escape sequence like "/f" in "/fontawesome" is displaying as "☼" same thing with ionic icons: Module not found: Error: Can't resolve './....node_modulesionic-angular☼ontsnoto-sans-bold.woff' in 'c:\Users<user_name>\Desktop<project>\src' any ideas? |
Use Bootstrap beta 2 instead. |
Ensure that, on Windows, the path doesn't contain back slashes to be PostCSS friendly :) Following angular#8791 Closes angular#9077 angular#9061 angular#9080
Ensure that, on Windows, the path doesn't contain back slashes to be PostCSS friendly :) Following angular#8791 Closes angular#9077 angular#9061 angular#9080
I just updated to the latest CLI on a Mac machine and am now getting this. Our project does not use Bootstrap in any aspect. |
@myspivey Yeah I had the same experience. I don't use bootstrap either. Downgrading to |
@myspivey same here: went to 1.6.4 and started getting this |
The problem is not bootstrap related. @import "~@angular/material/prebuilt-themes/indigo-pink.css"; inside styles.css. |
I don't seem to be able to successfully import any css file in node_modules. Neither by using a relative path nor by using the ~. Imports that are in my application itself can be imported.
|
If you are not using bootstrap then it's due to another open bug - #9185 |
Had the same issue. I temporary inserted all global .css to .angular-cli.json. Builds fine.
|
change it to: by removing ~ fixed my problem |
Hi @SerafimovichEugene ,
Any ideas for the issue mentioned above? |
@import "@angular/material/prebuilt-themes/indigo-pink.css"; remove '~' |
(Working with Angular CLI 1.6.4 and Angular 5.2.1) I was @importing "../node_modules/material-design-icons/iconfont/material-icons.css" in my main stylesheet. I removed the @import and instead referenced this stylesheet in .angular-cli.json and it solved my problem. |
I do |
{ |
Angular4, ng build, same with this issue, not bootstrap, it's about icheck. ERROR in ./node_modules/css-loader?{"sourceMap":false,"import":false}!./node_modules/postcss-loader/lib?{"ident":"postcss","sourceMap":false}!./node_modules/icheck/skins/all.css I'm developing angular app, when I run ng build, this error showed up. Don't konw it's a bug or not, is there any ideas? Thanks. |
I implemented it same as @tiandiduwuxiaoxiao in the global css -- getting the same error. If I move the bootstrap.css file to the root of the node modules folder
|
worked for me 👍 |
I have same issue using both of bootstrap versions |
I dont know , what the issue is your facing but in mine , i tried with refering stack overflow |
npm install worked for me |
You have to update node.js and angular/cli.Then you have angular.json file instead of angular-cli.json file.Then you add css file into angular.json file.If youn add css file into angular-cli.json file ,errors are occured. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Versions
Repro steps
styles.css --->
@import '~bootstrap/dist/css/bootstrap.css';
Observed behavior
ERROR in ./node_modules/css-loader?{"sourceMap":false,"importLoaders":1}!./node_ modules/postcss-loader/lib?{"ident":"postcss","plugins":[null,null,null],"source Map":false}!./node_modules/bootstrap/dist/css/bootstrap.css
Module build failed: BrowserslistError: Unknown browser major
at error (D:\angular\organicShop\node_modules\browserslist\index.js:37:11)
at Function.browserslist.checkName (D:\angular\organicShop\node_modules\brow serslist\index.js:320:18)
at Function.select (D:\angular\organicShop\node_modules\browserslist\index.j s:438:37)
at D:\angular\organicShop\node_modules\browserslist\index.js:207:41
at Array.forEach ()
at browserslist (D:\angular\organicShop\node_modules\browserslist\index.js:1 96:13)
at Browsers.parse (D:\angular\organicShop\node_modules\autoprefixer\lib\brow sers.js:44:14)
at new Browsers (D:\angular\organicShop\node_modules\autoprefixer\lib\browse rs.js:39:28)
at loadPrefixes (D:\angular\organicShop\node_modules\autoprefixer\lib\autopr efixer.js:56:18)
at plugin (D:\angular\organicShop\node_modules\autoprefixer\lib\autoprefixer .js:62:18)
at LazyResult.run (D:\angular\organicShop\node_modules\postcss-loader\node_m odules\postcss\lib\lazy-result.js:277:20)
at LazyResult.asyncTick (D:\angular\organicShop\node_modules\postcss-loader\ node_modules\postcss\lib\lazy-result.js:192:32)
at LazyResult.asyncTick (D:\angular\organicShop\node_modules\postcss-loader\ node_modules\postcss\lib\lazy-result.js:204:22)
at processing.Promise.then._this2.processed (D:\angular\organicShop\node_mod ules\postcss-loader\node_modules\postcss\lib\lazy-result.js:231:20)
at new Promise ()
at LazyResult.async (D:\angular\organicShop\node_modules\postcss-loader\node _modules\postcss\lib\lazy-result.js:228:27)
@ ./node_modules/css-loader?{"sourceMap":false,"importLoaders":1}!./node_module s/postcss-loader/lib?{"ident":"postcss","sourceMap":false}!./src/styles.css 3:10 -186
@ ./src/styles.css
@ multi ./src/styles.css
The text was updated successfully, but these errors were encountered: