Reactjs `纱线开始`命令导致`未找到模块'错误
运行纱线开始命令时出现此错误: 浏览器中的输出 未能编译Reactjs `纱线开始`命令导致`未找到模块'错误,reactjs,yarnpkg,Reactjs,Yarnpkg,运行纱线开始命令时出现此错误: 浏览器中的输出 未能编译 ./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/co
./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'
如何解决此问题?引用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.
谢谢你的回答。
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.