Anshu
Anshu

Reputation: 1327

`yarn start` command result in `Module not found` error

I'm getting this error when run yarn start command:

Module not found: Can't resolve 

'@babel/runtime/helpers/builtin/assertThisInitialized' in 
'/home/new88/Desktop/javascript/the_venue/node_modules/@material-ui/core/ButtonBase'

Output in browser

Failed to compile

./node_modules/@material-ui/core/ButtonBase/TouchRipple.js
Module not found: Can't resolve 
'@babel/runtime/helpers/builtin/assertThisInitialized' in 
'/home/new88/Desktop/javascript/the_venue/node_modules/@material-ui/core/ButtonBase'

How can I fix this?

Upvotes: 0

Views: 3617

Answers (1)

iamsaksham
iamsaksham

Reputation: 2949

Quoting the comment from github -

The issue seems from the Babel runtime being split into two,
and breaking the Material UI.

I downgraded the babel runtime, with 
npm install --save-exact @babel/[email protected]
and it works now.

Upvotes: 1

Related Questions