React Import Name Collision with react.d.ts

Answered

What in the world is going on here.  This project was compiling fine a couple months ago.  Now all of a sudden I get name collisions with React and have not even touched the code..

 

 

0
7 comments

Try to update to the latest version of IntelliJ IDEA. Similar issues were fixed in 2019.2.2: 

https://youtrack.jetbrains.com/issue/WEB-38842

Also, try to invalidate caches (File | Invalidate caches and restart) 

 

0

that's interesting, updated to 2.2 and now when I tell it to open my project, nothing happens, the welcome to intellij launch screen just sits there.

0

What is your macOS version? Is it Catalina? 

See this bug for the workaround. 

0

No it's mojave.  I also updated webstorm and it did not fix that original issue.  I see there's a mojave update out there that I have not updated yet to, let me try that next.

0

I updated to latest for mojave, can open the project but IntelliJ 2019.2 nor WebStorm's latest build fixed this problem.

0

Can you share the sample project, so we could reproduce the issue? You can do it privately, here is how: 

https://intellij-support.jetbrains.com/hc/en-us/articles/206869619-Uploading-Large-Files-for-JetBrains-Support-Team

0

Looks as if the setup scripts are not passed to mocha, so the code is not pre-processed with Babel, etc.

I can't reproduce the issue when using Mocha, React, Enzyme & Chai. Sample project that shows up the issue would be helpful. We are not asking for your actual production code, it can just be a pair of dummy spec files, but configuration (setup files, package.json, etc.) should be the same

0

Please sign in to leave a comment.