question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:

  1. Install material-ui v1.5.1
  2. Insert a Button
  3. 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:closed
  • Created 5 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

6reactions
Slessicommented, Aug 20, 2018

@guilherme-sol7 is right, to use @material-ui/core 1.5.1 you must also use @material-ui/icons >= 2.0.0.

2reactions
guilherme-sol7commented, Aug 20, 2018

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found