Incorrect @babel/runtime version
See original GitHub issue- This is a v1.x issue.
- I have searched the issues of this repository and believe that this is not a duplicate.
Expected Behavior
Building files with webpack shouldn’t raise @babel/runtime
errors
Current Behavior
Described in this react-event-listener issue.
Steps to Reproduce
Link:
- Install material-ui v1.5.1
- Insert a Button
- Build your dist output with webpack
Context
Looking at @material-ui/core
packages.json, I see 2 conflicting dependencies:
These 2 versions of babel runtime are incompatible.
Your Environment
Tech | Version |
---|---|
Material-UI | v1.5.1 |
React | v16.4.2 |
Issue Analytics
- State:
- Created 5 years ago
- Comments:10 (6 by maintainers)
Top Results From Across the Web
Incorrect @babel/runtime version #12587 - mui/material-ui
I tried debugging this issue, but still unable to resolve it. Let's take the error: ERROR in ./node_modules/@material-ui/core/styles/withStyles.
Read more >babel/plugin-transform-runtime
A plugin that enables the re-use of Babel's injected helper code to save on codesize.
Read more >How to fix a Babel/runtime/helper issue in Webpack 5?
Try rm -rf node_modules and npm install . Then resolve error one by one. There seems to be a problem with babel configuration....
Read more >babel-loader - webpack
webpack is a module bundler. Its main purpose is to bundle JavaScript files for usage in a browser, yet it is also capable...
Read more >@babel/core - NPM Package Versions - Socket
Babel compiler core. Version: 7.9.6 was published by nicolo-ribaudo. Start using Socket to analyze @babel/core and its 16 dependencies to secure your app ......
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
@guilherme-sol7 is right, to use
@material-ui/core
1.5.1
you must also use@material-ui/icons
>= 2.0.0
.I had this issue with this packages
"@material-ui/core": "^1.3.1", "@material-ui/icons": "^1.1.0",
Update @material-ui/icons to the lastet, current ^2.0.3 resolve my problem