Docz: Error when using [email protected]

Created on 27 Mar 2019  路  3Comments  路  Source: doczjs/docz

Bug Report

Describe the bug

I had Docz working perfectly until today using [email protected]__, but when I updated this morning to [email protected]__, this error appears:

__TypeError: Cannot read property 'Consumer' of undefined__

To Reproduce

  1. Download the following example repository that I'm building, where I have found the error.
  2. yarn
  3. yarn docz:dev
  4. Navigate to http://127.0.0.1:3500/ to see the error.
Compiled with warnings.

./node_modules/react-router-dom/esm/react-router-dom.js
Attempted import error: '__RouterContext' is not exported from 'react-router'.

Search for the keywords to learn more about each warning.
To ignore, add // eslint-disable-next-line to the line before.

Expected behavior

The same behavior I had with [email protected]__. Just work as always without any errors.

Environment

  • OS: OSX 10.14.4.
  • Node/npm version: 10.15.2 / 6.7.0.

Additional context/Screenshots

Screenshot 2019-03-27 17 18 00

Thanks in advance

Most helpful comment

I have the same problem but don't understand this solution. Im using CRA.

All 3 comments

Hey dude, we are no longer supporting 0.137, try to update :)

Hi @pedronauck. Thanks a lot for your help. I'm using a Visual Studio Code plugin to maintain my packages versions (Version Lens), and I missed the notification about the RC tag. Everything works now :)

I have the same problem but don't understand this solution. Im using CRA.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nicholasess picture nicholasess  路  3Comments

koddr picture koddr  路  3Comments

albinekb picture albinekb  路  3Comments

YardWill picture YardWill  路  3Comments

regrettably picture regrettably  路  3Comments