Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TransformError when running React Native Getting Started project (iOS)

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

When I try to run the project from Xcode, the packager gets to " transform" then an error appears in the simulator.

TransformError: Projects/AwesomeProject/node_modules/react-native/packager/react-packager/src/DependencyResolver/polyfills/prelude_dev.js: Unknown plugin "node-env-inline"

Here are my versions:

OS X Yosemite 10.10.1
Node 4.2.1
Xcode 6.4
React Native 0.12.0
like image 417
Eli Avatar asked Sep 21 '26 08:09

Eli


1 Answers

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

like image 124
Shaun Avatar answered Sep 24 '26 02:09

Shaun



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!