undefined 不是一个函数(评估'babelHelpers.asyncToGenerator')react-native [英] undefined is not a function (evaluating 'babelHelpers.asyncToGenerator') react-native
本文介绍了undefined 不是一个函数(评估'babelHelpers.asyncToGenerator')react-native的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我遇到了这个错误并且卡住了.
I've got this error and get stuck.
我试图删除 .babelrc 文件,但这并没有使它起作用.
I tried to remove .babelrc file but this doesn't make it work.
推荐答案
我遇到了完全相同的问题,但我通过将 transform-async-to-generator
添加到我的 .babelrc 文件中来解决它这个 babel 包 babel-plugin-transform-async-to-generator
I had this exact same issue, but I fixed it by adding transform-async-to-generator
to my .babelrc file from this babel package babel-plugin-transform-async-to-generator
这篇关于undefined 不是一个函数(评估'babelHelpers.asyncToGenerator')react-native的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文