gpt4 book ai didi

javascript - 捆绑失败: Error: Requires Babel "^7.0.0-0"

转载 作者:行者123 更新时间:2023-12-01 01:08:52 24 4
gpt4 key购买 nike

将react-if包安装到我的react native 应用程序后,我收到错误

bundling failed: Error: Requires Babel "^7.0.0-0", but was loaded with "6.26.3"

我尝试通过运行 npx babel-upgrade --write --install 来升级 Babel,但仍然遇到相同的错误。如何升级 Babel?

如果我运行 babel -V 版本为 7.2.3 (@babel/core 7.4.0)

最佳答案

我认为你需要安装 babel-core

yarn add --dev babel-jest babel-core@^7.0.0-bridge.0 @babel/core regenerator-runtime

试试这个。
希望它有效!

关于javascript - 捆绑失败: Error: Requires Babel "^7.0.0-0",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55348764/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com