New react-native app has 'TypeError: babelHelpers.typeof is not a function' [iOS]

后端 未结 7 1932
花落未央
花落未央 2020-12-31 02:37

A new project created with the latest version of react-native throws javascript error while running(/debugging). Tested this on simulator.

[fatal][tid:main]         


        
7条回答
  •  感动是毒
    2020-12-31 03:19

    It's usually due to a 3rd party npm dependency that has .babelrc or babel es2015 preset specified in it's package.json.

    There's a fix in place: https://github.com/facebook/react-native/pull/11093

提交回复
热议问题