简体   繁体   English

`yarn start` 命令导致 `Module not found` 错误

[英]`yarn start` command result in `Module not found` error

I'm getting this error when run yarn start command:运行yarn start命令时出现此错误:

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?我怎样才能解决这个问题?

Quoting the comment from github -引用 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/runtime@7.0.0-beta.55
and it works now.

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM