-
-
Notifications
You must be signed in to change notification settings - Fork 697
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
Module build failed: BrowserslistError: Unknown browser query dead
#266
Comments
It happpens because of old cssnano (it uses old Browserslist without We are triting to release cssnano 4 (with new Browserslist) ASAP |
What you can do right now:
|
Can you please explain how to disable CSS minimization in webpack? because i am new to this. |
@Prabhagar06 show your webpack config |
Ya. I have done it myself. thanks |
Hello @Prabhagar06 @ai could you please provide the steps to disable the CSS minimization in webpack as I'm facing the same issue. |
Try to pass: {
loader: 'css-loader',
options: {
minimize: false
}
} |
Included the above code in webpack.config.js under node_modules/xxhashjs/webpack.config.js but did not resolve the issue. Sorry i'm new to this. Could you please direct if i'm making the changes at the correct place? Thanks var path = require("path") |
@SiddarthVaikunthe sorry, ask webpack team for it ;) |
If you are seeing this with the autoprefixer default settings (which include
|
Update |
This is not closed, this issue is happening...
|
@juanr2001 Show your |
I'm encountering the same issue with Angular 5.2 |
@tncho are you sure that Angular 5.2 uses |
@ai honestly I'm not sure, but I think not since I'm not seeing that dependency in the package / package-lock .json. The error in my case goes like this:
|
@tncho to fix this issue you must start to use Check your |
It looks like @angular/cli@1.7.4 has a dependency on autoprefixer@7.2.6 which has a dependency on browserslist@2.11.3 |
This just started happening for me today after I manually deleted my npm_modules folder and ran npm install. Now when I try to run ng serve. I get the error below.
|
@bjohndev Check your npm ls, find who load old Browserslist (before 3.0). Update the dependency. |
@ai This is the same issue that @nicksterx mentioned. "It looks like @angular/cli@1.7.4 has a dependency on autoprefixer@7.2.6 which has a dependency on browserslist@2.11.3" , what command should I run to update which dependency? |
@bjohndev current version is 6.0.8 😏. Update I recommend to use Yarn instead of npm since Yarn has very useful tool |
Thanks @ai below is my package.json. I'm not sure what to change there.
|
@bjohndev Do you have another dev on your team with a working build? If you do can you take their package-lock.json? That's what I did to get to a working state but trying to figure out which package changed to break everything. |
Look into I am not Angular user, so I can't give you direct instructions. You can try to ask people in Angular slack to help you. |
@nicksterx I have my package-lock.json in source control. I'll have to look at that to see if I can determine what is happening. I have several projects setup without this problem. |
Figured it out! Bootstrap 4.1.2 is breaking things. They released it 6 hours ago. Not sure what is broken but changing my package.json bootstrap to 4.1.1 fixes it. |
@nicksterx I'll give this a try |
@ai you're totally right. Mine was just a temporary patch on a a project I'm working on and I didn't take into consideration the (now evident) trade offs. |
Just run 'npm install latest' in Git Bash (the terminal) to fix the problems. |
@Graphap fix the source of the problem, not result. You need to update Browserslist in all components. By removing |
@ai Because this was fixed in bootstrap 4.1.3 should this thread be locked? These are a lot of solutions being suggested that are not helpful and probably confusing. |
I do not like blocked issue. For my point of view, it is not welcome and should be used only to prevent conflict |
Here's a detailed answer for the same. See if that helps. |
Why people're relating bootstrap to browserlist issue ? |
@juliusdejon I deleted your commit because it could force junior developers to use for dangerous solutions.
You will fix the symptom but not the source of the problem. Some of your dependency uses old Browserslist. It means, that even without new The real solution:
|
├─┬ caniuse-api@1.6.1 |
@juliusdejon the latest |
@bjohndev and @ai . Below issue is not resolved for me This is not resolved for me, I verified my code and it has browserslist = 2.11.3, autoprefixer = 7.2.3, angularcli=1.7.4 I modified the bootstrap version = 4.1.1 and ^4.1.3 and tried .Still it has issues. Its not allowing me to do ng serve.Please suggest solution to resolve this. |
@SharmilaU-Hexaware It helped me out, so I wrote about it. |
@vipulgupta2048 .Thanks for the suggestion. i have seen that earlier when i was exploring the possible answers. It didnt resolve my problem. |
Why this issue closed ? It's not been solved yet. |
@revskill10 this issue is closed because I can’t do anything. Current Browserslist supports |
My solution: |
It was caused by in your local environment existed other Angular project that used latest version than your current project. It can be fixed by add below config in your package.json. . You can get more detail in browserslist
|
Avoid error: Module build failed: BrowserslistError: Unknown browser query `dead` Ref: browserslist/browserslist#266 (comment)
Could you please help me
The text was updated successfully, but these errors were encountered: