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

后端 未结 7 1894
花落未央
花落未央 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:11

    Solved adding babel stage-1 and react-native preset's to .babelrc in the project's root folder.

    {
      "presets": ["stage-1", "react-native"],
    }
    

    More details here: https://github.com/facebook/react-native/issues/5747

提交回复
热议问题