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:
- Created 5 years ago
- Reactions:25
- Comments:14 (7 by maintainers)
Top 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 >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
I’m releasing v1.4.3.
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.