gpt4 book ai didi

node.js - React-Native 0.16.0 和 0.17.0 上为 "babelHelpers.asyncToGenerator is not a function"

转载 作者:太空宇宙 更新时间:2023-11-03 22:14:08 26 4
gpt4 key购买 nike

我将 React-Native 从 0.14.0 更新到 0.16.0,从现在开始,我在运行时遇到错误:

https://cloud.githubusercontent.com/assets/3106676/11873009/b5b3aee2-a4d8-11e5-96db-831de137af06.png

https://cloud.githubusercontent.com/assets/3106676/11873609/c1cc1c34-a4db-11e5-981f-8d7d8c653819.png

以下是 npm 依赖项:

"dependencies": {
"async": "^1.5.0",
"immutable": "^3.7.6",
"react-native": "^0.16.0",
"react-native-contacts": "../../react-native-contacts",
"react-native-contacts-rx": "^1.0.1",
"react-native-gifted-messenger": "0.0.7",
"react-native-i18n": "0.0.6",
"react-redux": "^4.0.1",
"redux": "^3.0.5",
"rx": "^4.0.7"
},
"devDependencies": {
"babel-eslint": "^5.0.0-beta6",
"eslint": "^1.10.3",
"eslint-config-airbnb": "^2.1.1",
"eslint-plugin-react": "^3.11.3",
"events": "^1.1.0",
"flux": "^2.1.1",
"keymirror": "^0.1.1",
"lodash": "^3.10.1",
"redux-devtools": "^3.0.0"
}

还有我的 .babelrc 文件:

{
"retainLines": true,
"compact": true,
"comments": false,
}

有什么建议吗?

最佳答案

这些问题已在 @Jean Lebrument 提交的问题中得到解答。在这里为像我这样的绊脚石提供答案......

https://github.com/facebook/react-native/issues/4844

问题很可能出在您的 .babelrc 文件中。如果您遇到此问题,请将您的 .babelrc 文件与 react natives default one 进行比较。尝试删除该文件或构建默认文件,添加您需要的功能。

确保重新启动打包程序、停止并重新运行项目。

关于node.js - React-Native 0.16.0 和 0.17.0 上为 "babelHelpers.asyncToGenerator is not a function",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34338416/

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