gpt4 book ai didi

react-native 升级返回未定义的 'toLowerCase'

转载 作者:行者123 更新时间:2023-12-04 05:25:52 27 4
gpt4 key购买 nike

我正在尝试将我的 React Native 更新到最新版本。我运行命令:react-native upgrade --verbose

但是,它正在返回:

info No version passed. Fetching latest...
info Fetching diff between v0.59.8 and v0.60.5...
error Cannot read property 'toLowerCase' of undefined
debug TypeError: Cannot read property 'toLowerCase' of undefined
at getPatch (/Users/myUser/Documents/React Native/myApp/node_modules/@react-native-community/cli/build/commands/upgrade/upgrade.js:109:121)
at process._tickCallback (internal/process/next_tick.js:68:7)

如何升级 React Native?

最佳答案

在您的 package.json 文件中添加名称属性。这将解决问题

关于react-native 升级返回未定义的 'toLowerCase',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57732170/

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