TransformError when running React Native Getting Started project (iOS)

前端 未结 4 924
攒了一身酷
攒了一身酷 2021-01-14 09:16

I\'m having trouble getting the React Native Getting Started project to run.

I followed this guide: https://facebook.github.io/react-native/docs/getting-started.html<

4条回答
  •  Happy的楠姐
    2021-01-14 10:03

    Had this same problem. I had a ~/.babelrc that was mucking everything up. I tried everything I could find

    1. rm -rf node_modules
    2. npm cache clean
    3. changed versions of node
    4. npm install

    Finally... the solution for me was:

    sudo lsof -n -i4TCP:8081 then kill the process and rerun react-native run-ios

提交回复
热议问题