question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

New project fails on react-native@0.46

See original GitHub issue

Is this a bug report?

Yes

Have you read the Bugs section of the Contributing to React Native Guide?

Yes

Environment

  1. react-native -v: 0.46.0
  2. node -v: 8.1.3
  3. npm -v: 5.0.3
  4. yarn --version (if you use Yarn): 0.27.5

Then, specify:

  1. Target Platform (e.g. iOS, Android): iOS
  2. Development Operating System (e.g. macOS Sierra, Windows 10): macOS Sierra (10.12.5 (16F73)
  3. Build tools (Xcode or Android Studio version, iOS or Android SDK version, if relevant): Xcode 8.3.3

Steps to Reproduce

(Write your steps here:)

  1. react-native init Test
  2. cd Test
  3. react-native run-ios

Expected Behavior

App would go through build process and start app in iOS Simulator, and packager in a terminal window.

Actual Behavior

Error in simulator simulator screen shot jul 6 2017 9 34 25 am

Error in packager Terminal Saved Output.pdf

Reproducible Demo

It’s a fresh project built with react-native-cli.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:6
  • Comments:22 (7 by maintainers)

github_iconTop GitHub Comments

5reactions
iRoachiecommented, Jul 6, 2017

Removing .babelrc seems to temporarily fix the issue

3reactions
rburmorrisoncommented, Jul 6, 2017

I’ve had a lot of issues with React Native version 0.45 and up. One thing that I found is that React Native doesn’t play well with npm 5. Switch to npm 4. Do this with npm install -g npm@latest-4. If that doesn’t help, simply switch to React Native 0.44.0. That’s what I’m using, and you’re not missing out on much by going back. When starting a new project, run react-native init projectname --version 0.44.0. Hope that helps!

Read more comments on GitHub >

github_iconTop Results From Across the Web

New project not working on IOS Xcode 12.4 react-native 0.64 ...
Description i try to create a new project (npx react-native init ... Error: Command PhaseScriptExecution failed with a nonzero exit code.
Read more >
react native - Getting error while creating a new Project
I'm new to reactnative. I have followed steps to install reactnative properly but, while creating a new project, I'm getting an error.
Read more >
Error in building ReactNative videoSDK sample code (IOS ...
error Failed to build iOS project. We ran “xcodebuild” command but it exited with error code 65. To debug build logs further, ...
Read more >
Add Expo to an existing project
When the command succeeds, you will be able to add any Expo module in your app! Proceed to Usage for more information. If...
Read more >
roam-reactnative - npm
This plugin allows to use the Roam.ai SDK in your React Native mobile application on iOS and Android.. Latest version: 0.0.41, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found