Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fails after upgrading from 0.70.8 to 0.71.7 #37184

Closed
KrisLau opened this issue May 1, 2023 · 5 comments
Closed

Build fails after upgrading from 0.70.8 to 0.71.7 #37184

KrisLau opened this issue May 1, 2023 · 5 comments
Labels
Needs: Attention Issues where the author has responded to feedback.

Comments

@KrisLau
Copy link

KrisLau commented May 1, 2023

Description

After upgrading RN from 0.70.8 to 0.71.7, I'm getting this error when I run it from my IDE:

node: internal/process/promises: 288
      triggerUncaughtException(err, true /* fromPromise */)

XCode runs the app perfectly fine. I went through the upgrade helper over and over to double check and I don't think I'm missing anything to the best of my knowledge

React Native Version

0.71.7

Output of npx react-native info

warn Package @sentry/react-native contains invalid configuration: "dependency.platforms.ios.sharedLibraries" is not allowed,"dependency.hooks" is not allowed. Please verify it's properly linked using "react-native config" command and contact the package maintainers about this.
info Fetching system and libraries information...
System:
    OS: macOS 12.6.1
    CPU: (6) x64 Intel(R) Core(TM) i5-8500B CPU @ 3.00GHz
    Memory: 492.41 MB / 8.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 18.13.0 - ~/.nvm/versions/node/v18.13.0/bin/node
    Yarn: 1.22.19 - ~/.nvm/versions/node/v18.13.0/bin/yarn
    npm: 9.6.4 - ~/.nvm/versions/node/v18.13.0/bin/npm
    Watchman: 2023.01.16.00 - /usr/local/bin/watchman
  Managers:
    CocoaPods: 1.12.0 - /usr/local/bin/pod
  SDKs:
    iOS SDK:
      Platforms: DriverKit 22.2, iOS 16.2, macOS 13.1, tvOS 16.1, watchOS 9.1
    Android SDK:
      API Levels: 23, 31, 33
      Build Tools: 28.0.3, 29.0.2, 29.0.3, 30.0.3, 31.0.0, 32.0.0, 32.1.0, 33.0.0
      System Images: android-30 | Google Play Intel x86 Atom, android-31 | Intel x86 Atom_64, android-31 | Google APIs Intel x86 Atom_64
      Android NDK: Not Found
  IDEs:
    Android Studio: 2021.2 AI-212.5712.43.2112.8609683
    Xcode: 14.2/14C18 - /usr/bin/xcodebuild
  Languages:
    Java: 11.0.12 - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 18.2.0 => 18.2.0 
    react-native: 0.71.7 => 0.71.7 
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

Steps to reproduce

Not sure I just followed the upgrade helper and upgraded the relevant files.

Snack, code example, screenshot, or link to a repository

image

@KrisLau KrisLau changed the title Build fails from IDE but works from XCode after upgrading from 0.70.8 to 0.71.7 Build fails after upgrading from 0.70.8 to 0.71.7 May 1, 2023
@cortinico
Copy link
Contributor

After upgrading RN from 0.70.8 to 0.71.7, I'm getting this error when I run it from my IDE:

From which IDE? Are you talking about Android Studio (your screeshot) or XCode (as you mentioned in the comment)?

@KrisLau
Copy link
Author

KrisLau commented May 2, 2023

@cortinico Sorry i managed to fix it! I'm not sure exactly which thing fixed it but I reinstalled my command line tools for Xcode, Ruby, Cocoapods. The IDE was IntelliJ.

@KrisLau KrisLau closed this as completed May 2, 2023
@github-actions github-actions bot added Needs: Attention Issues where the author has responded to feedback. and removed Needs: Author Feedback labels May 2, 2023
@tanlucvo
Copy link

I got that issue, what version Ruby, Cocoapods you used

@ericjj94
Copy link

ericjj94 commented Jan 2, 2024

I also got this issue on react-native@0.71.14 when running on mac m1 from the terminal. I am using xcode version 14.2.

@pietro-marrone-dka
Copy link

Also happening with me on 0.72.5

System:
  OS: macOS 14.4
  CPU: (10) arm64 Apple M1 Pro
  Memory: 129.38 MB / 16.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 18.19.0
    path: ~/.nvm/versions/node/v18.19.0/bin/node
  Yarn:
    version: 1.22.5
    path: /usr/local/bin/yarn
  npm:
    version: 10.2.3
    path: ~/.nvm/versions/node/v18.19.0/bin/npm
  Watchman:
    version: 2023.12.04.00
    path: /usr/local/bin/watchman
Managers:
  CocoaPods:
    version: 1.12.1
    path: /Users/pietrorutzen/.rvm/gems/ruby-3.0.0/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 23.2
      - iOS 17.2
      - macOS 14.2
      - tvOS 17.2
      - visionOS 1.0
      - watchOS 10.2
  Android SDK:
    API Levels:
      - "26"
      - "27"
      - "28"
      - "29"
      - "30"
      - "31"
      - "32"
      - "33"
      - "33"
    Build Tools:
      - 23.0.2
      - 28.0.0
      - 28.0.1
      - 28.0.2
      - 28.0.3
      - 29.0.0
      - 29.0.2
      - 30.0.2
      - 30.0.3
      - 31.0.0
      - 32.0.0
      - 32.0.0
      - 33.0.0
      - 33.0.1
      - 33.0.2
      - 34.0.0
      - 34.0.0
    System Images:
      - android-27 | Intel x86 Atom_64
      - android-27 | Google APIs Intel x86 Atom
      - android-29 | Google Play ARM 64 v8a
      - android-31 | Google APIs ARM 64 v8a
      - android-31 | Google Play ARM 64 v8a
      - android-32 | Desktop ARM 64 v8a
      - android-32 | Desktop Intel x86_64 Atom
      - android-32 | Google APIs ARM 64 v8a
      - android-32 | Google APIs Intel x86_64 Atom
      - android-32 | Google Play ARM 64 v8a
      - android-32 | Google Play Intel x86_64 Atom
      - android-33-ext4 | Google Play ARM 64 v8a
      - android-33 | Google APIs ARM 64 v8a
      - android-33 | Google Play ARM 64 v8a
    Android NDK: Not Found
IDEs:
  Android Studio: 2022.1 AI-221.6008.13.2211.9619390
  Xcode:
    version: 15.2/15C500b
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 11.0.21
    path: /Users/pietrorutzen/.jenv/shims/javac
  Ruby:
    version: 3.0.0
    path: /Users/pietrorutzen/.rvm/rubies/ruby-3.0.0/bin/ruby
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.2.0
    wanted: 18.2.0
  react-native:
    installed: 0.72.5
    wanted: 0.72.5
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: true
  newArchEnabled: false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs: Attention Issues where the author has responded to feedback.
Projects
None yet
Development

No branches or pull requests

5 participants