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.

Broken dependency to @babel/runtime causing build errors

See original GitHub issue

@babel/runtime recently released version v7.0.0-beta.56, which split part of the package up into @babel/runtime-corejs2. This is a breaking change that affects Material-UI, causing errors like Error: Can't resolve '@babel/runtime/helpers/builtin/typeof'. The change happened as part of babel/babel#8266.

The root cause is because Material-UI depends on version ^7.0.0-beta.42 of @babel/runtime, which will select the latest breaking version v7.0.0-beta.56 on install.

As a quick workaround for anyone affected, you can run npm install --save-exact @babel/runtime@7.0.0-beta.55 if using npm or yarn add @babel/runtime@7.0.0-beta.55 --exact if using Yarn to revert back to the previous version of @babel/runtime compatible with Material-UI.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:25
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

5reactions
oliviertassinaricommented, Aug 4, 2018

I’m releasing v1.4.3.

2reactions
YibaiLincommented, Aug 4, 2018

Thanks for the workaround @calebj0seph , I’m using Yarn, and after I revert the version of @babel/runtime back, I need to run yarn clean cache to make it work .Hoping this would be fix soon.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to fix - Module not found: Can't resolve '@babel/runtime ...
I am working on a project of react and I am getting the following error after implement this package https://www ...
Read more >
Npm install error(fails) - M220JS - MongoDB
Hi , I downloaded the mflix-js project and used npm install and it started to show errors , tried different methods like changing ......
Read more >
babel/preset-env
@babel/preset-env takes any target environments you've specified and checks them against its mappings to compile a list of plugins and passes it to...
Read more >
babel-loader - webpack
This package allows transpiling JavaScript files using Babel and webpack. ... core-js and webpack/buildin will cause errors if they are transpiled by Babel....
Read more >
Linked Addons causing build errors in consuming app relates ...
3". If you are sure you have a compatible version of @babel/core, it is likely that something in your build process is loading...
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