Requires Babel “7.0.0-0” but was
2020-05-14 本文已影响0人
百變Confucius
Requires Babel “7.0.0-0” but was loaded with “6.26.3”
如果遇到上述问题,解决方案(适用于针对Nuxt的Jest 单元测试):
npm uninstall babel-cli -g
npm uninstall babel-core -g
npm install babel-core@7.0.0-bridge.0 --save-dev