React Import Name Collision with react.d.ts Follow
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..
Please sign in to leave a comment.
Try to update to the latest version of IntelliJ IDEA. Similar issues were fixed in 2019.2.2:
Also, try to invalidate caches (File | Invalidate caches and restart)
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.
What is your macOS version? Is it Catalina?
See this bug for the workaround.
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.
I updated to latest for mojave, can open the project but IntelliJ 2019.2 nor WebStorm's latest build fixed this problem.
Can you share the sample project, so we could reproduce the issue? You can do it privately, here is how:
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