Docz: v2 doesn't work with CRA's browserslist setup

Created on 20 Jul 2019  路  3Comments  路  Source: doczjs/docz

Bug Report

Describe the bug

When using the v2 of Docz with CRA v3's browserslist.

CRA's browserslist setup is for development and production.

{
    "browserslist": {
        "production": [
            ">0.2%",
            "not dead",
            "not ie <= 11",
            "not op_mini all"
        ],
        "development": [
            "last 1 chrome version",
            "last 1 firefox version",
            "last 1 safari version"
        ]
    }
}

But Docz v2 is expecting something like:

{
    "browserslist": [
        "last 1 chrome version",
        "last 1 firefox version",
        "last 1 safari version"
    ]
}

Expected behavior

I expect to be able to use Docz v2 with my current CRA browserslist setup

v2

Most helpful comment

Hey,

This issue was fixed in version 2.0.0-rc.33.

Any version after that should work as you'd expect it.

Feel free to re-open if it happens again

All 3 comments

I have same error. What's the work around?

same +1

Hey,

This issue was fixed in version 2.0.0-rc.33.

Any version after that should work as you'd expect it.

Feel free to re-open if it happens again

Was this page helpful?
0 / 5 - 0 ratings

Related issues

brunolemos picture brunolemos  路  3Comments

merelinguist picture merelinguist  路  3Comments

wldcordeiro picture wldcordeiro  路  3Comments

mquandalle picture mquandalle  路  3Comments

nicholasess picture nicholasess  路  3Comments