Skip to content
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

Uncaught TypeError: Cannot set property 'jsx' of undefined #339

Closed
bakso opened this issue Sep 19, 2018 · 8 comments
Closed

Uncaught TypeError: Cannot set property 'jsx' of undefined #339

bakso opened this issue Sep 19, 2018 · 8 comments
Labels
question Usage question or clarification request

Comments

@bakso
Copy link

bakso commented Sep 19, 2018

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

@pedronauck pedronauck added the bug Something isn't working label Sep 20, 2018
@pedronauck
Copy link
Member

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

@pedronauck pedronauck added question Usage question or clarification request and removed bug Something isn't working labels Sep 28, 2018
@nnecec
Copy link
Contributor

nnecec commented Oct 9, 2018

I still have this problem.

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

@torch2424
Copy link

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?

@kikorb
Copy link

kikorb commented Oct 11, 2018

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.

@kikorb
Copy link

kikorb commented Oct 11, 2018

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.

@kikorb
Copy link

kikorb commented Oct 11, 2018

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.

@JoshRosenstein
Copy link

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.

@Glazy
Copy link
Contributor

Glazy commented Apr 28, 2019

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 👍

@Glazy Glazy closed this as completed Apr 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Usage question or clarification request
Projects
None yet
Development

No branches or pull requests

7 participants