TypeError: /root/my-project/src/utils/Yuan.js: Duplicate declaration "React"
See original GitHub issueHi there, has anybody else get this error when running npm run build
?
I started getting error like these using v1, then I thought using v2 should solve it but it didn’t.
Here is an screenshot, I’m getting the same error either in Ubuntu or MacOS, running Node 8.11 and 9.10
Thanks in advance.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:3
- Comments:14 (2 by maintainers)
Top Results From Across the Web
Duplicate declaration "React" · Issue #31 - GitHub
I'm using this plugin with next.js, which uses babel-plugin-react-require . It seems that the changes in 3bab74c are conflicting with that.
Read more >Module build failed , Duplicate declaration - Stack Overflow
I am following Microsoft Tutorial regarding React JS, ... Duplicate declaration "InboxPane". the code is as follows: app.js var React ...
Read more >Module Build Failed: Duplicate Declaration "Editor"-Reactjs
Coding example for the question Module Build Failed: Duplicate Declaration "Editor"-Reactjs.
Read more >React-Redux import : duplicate declaration ? : r/reactjs - Reddit
Hi guys ! I'm a beginner in Redux and when trying to import a component I created, I have this error : Duplicate...
Read more >Developers - Duplicate declaration "React" - - Bountysource
I'm using this plugin with next.js, which uses babel-plugin-react-require . It seems that the changes in 3bab74c5587d33892fd2cb409df2ae3fad641b6e are ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Same error here
Running the following command the error stopped for me:
rm yarn.lock && rm -rf node_modules && yarn && yarn build