`yarn start` 命令导致`Module not found` 错误
`yarn start` command result in `Module not found` error
我在 运行 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'
在浏览器中输出
编译失败
./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'
我该如何解决这个问题?
引用 comment 来自 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.
我在 运行 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'
在浏览器中输出
编译失败
./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'
我该如何解决这个问题?
引用 comment 来自 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.