Docz: Uncaught TypeError: Cannot set property 'jsx' of undefined

Created on 19 Sep 2018  路  8Comments  路  Source: doczjs/docz

Bug Report

Today i run npm install, and npm run doc(alias of docz dev, docz was installed in the project dir), caght error below:

image

acorn$$1.plugins is undefined.

image

question

All 8 comments

Can you give a repo with minimal setup of your project to reproduce the bug?

I still have this problem.

I have remove node_modules and yarn.lock, and try yarn install again. It works.

Also got this issue. Downgrading docz to v0.11.2 worked for me. The strange thing is, I actually just used docz on another repo at the latest version 0.12.5, and it worked fine. I think maybe some dependency is missing somewhere in the latest versions?

I just had the same problem. I managed to configure Docz and use it fine but when I tried to configure jest to have my tests passing again I had to add:

"@babel/register": "^7.0.0",
"babel-core": "^7.0.0-bridge.0",
"regenerator-runtime": "^0.12.1",

to my package.json in order to have Jest working. That created this issue for docz. I assume the culprit is having babel-core in addition to @babel/core.

Ok the issue seems to be in @babel/register somehow, I have removed the other 2 libraries and the error persist if the only change I do is add @babel/register to the project.

Ok I solved the issue adding "acorn": "5.7.3", to my dev dependencies. @babel/register updated some dependencies and acorn was not a fixed dependency.

Same here. i had latest version of acorn in my dev deps for my library, but had to downgrade it to get docz to work.

Closing this issue since it hasn't had any activity in quite a few months. If you're still experiencing problems then please open up a fresh issue :+1:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

regrettably picture regrettably  路  3Comments

wldcordeiro picture wldcordeiro  路  3Comments

mquandalle picture mquandalle  路  3Comments

danburzo picture danburzo  路  3Comments

bichotll picture bichotll  路  3Comments