Skip to content

BrowserslistError: Unknown version 55 of and_chr #340

Closed
@kristoferjoseph

Description

@kristoferjoseph

If I add cssnano to my project I get this error.
If I remove it the error goes away.
Please advise.
Thank you kindly.

Activity

ben-eb

ben-eb commented on Jan 11, 2017

@ben-eb
Collaborator

Are all of your dependencies up to date? This might be caused by overlapping caniuse-db versions.

kristoferjoseph

kristoferjoseph commented on Jan 11, 2017

@kristoferjoseph
Author

Yes. Even after updating all dependencies it still throws this error. I am sad. 😢

ben-eb

ben-eb commented on Jan 11, 2017

@ben-eb
Collaborator

That's odd. @sylvainpolletvillard had this issue earlier and it was resolved by updating caniuse-db manually to the latest version. Does this work for you?

kristoferjoseph

kristoferjoseph commented on Jan 12, 2017

@kristoferjoseph
Author

How does one go about doing this?
npm i caniuse-db ?

ben-eb

ben-eb commented on Jan 12, 2017

@ben-eb
Collaborator

Yeah, the current version is 1.0.30000605; Fyrd/caniuse@67737db

sylvainpolletvillard

sylvainpolletvillard commented on Jan 12, 2017

@sylvainpolletvillard

Yes, I got the same issue today and solved it with npm update caniuse-db
It works with caniuse-db version 1.0.30000605

Xayah2709

Xayah2709 commented on Jan 12, 2017

@Xayah2709

Same error here.
I found that it comes from https://github.com/ben-eb/postcss-merge-rules, that uses caniuse-api@1.5.2.

For now, I only exclude merge-rules from my optimization process:
cssnano({ mergeRules: false })

kristoferjoseph

kristoferjoseph commented on Jan 12, 2017

@kristoferjoseph
Author

solution:
npm i caniuse-db --save with npm 3+

poxrud

poxrud commented on Jan 13, 2017

@poxrud

Same error, npm i caniuse-db --save fixed it

eseQ

eseQ commented on Jan 16, 2017

@eseQ

@kristoferjoseph hm, thanks, that work for me

ScottSmith95

ScottSmith95 commented on Jan 20, 2017

@ScottSmith95

I'm still getting this error, even with the autoprefixer optimisation disabled and after running npm update caniuse-db. I've purged my node_modules directory as well.

The error I'm specifically receiving is Unknown version 0 of and_chr

ben-eb

ben-eb commented on Jan 21, 2017

@ben-eb
Collaborator

@ScottSmith95 Does the latest release of browserslist resolve this issue for you? browserslist/browserslist#110 (comment)

ScottSmith95

ScottSmith95 commented on Jan 24, 2017

@ScottSmith95

Yes, looks like this issue is resolved for me now.

manuelbieh

manuelbieh commented on Jan 24, 2017

@manuelbieh

Same error here. Had to pin cssnano@3.9.1. Everything after 3.9.1 throws the error mentioned above.

15 remaining items

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @kristoferjoseph@stevenvachon@manuelbieh@sylvainpolletvillard@ScottSmith95

        Issue actions

          BrowserslistError: Unknown version 55 of and_chr · Issue #340 · cssnano/cssnano