TransformError with babel-preset-react-native/index.js

前端 未结 3 422
慢半拍i
慢半拍i 2020-12-16 04:36

I\'m brand new to react-native, and trying to render my first bit of text on the screen.

When I run react-native run-ios and then click into my sample a

3条回答
  •  眼角桃花
    2020-12-16 04:43

    I got same problem yesterday and my way is:

    1. Go to node_modules and remove babel-preset-react-native folder.
    2. In root project type:
      npm install babel-preset-react-native@2.1.0 --save-dev

    Hope you get this solved.

    Thanks GaBACK

提交回复
热议问题