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

Bundle react native fails with node not found when uploading bundle maps #1503

Open
amlcurran opened this issue Dec 12, 2024 · 0 comments
Open
Labels
bug Something isn't working rum Related to [dsyms, flutter-symbols, unity-symbols, react-native, sourcemaps]

Comments

@amlcurran
Copy link

Bug description

When following the instructions from https://docs.datadoghq.com/real_user_monitoring/error_tracking/mobile/reactnative/#alternatives-to-datadog-react-native-wizard-for-symbolication (or indeed the instructions for the wizard), making the required change to the "Bundle React Native code and images" step then results in the build consistently failing in Xcode with a node issue.

There are no issues running the build from the command line, nor using the default react native bundling. The problem only occurs when integrating datadog to upload the bundlemap.

These logs are outputted:

Node found at: /Users/alex.curran/.nvm/versions/node/v20.5.0/bin/node
env: node: No such file or directory

Is datadog CI reading node from .xcode.env.local properly?

Describe what you expected

Build script runs successfully in Xcode

Steps to reproduce the issue

  • Follow the integration steps
  • Run a build in Xcode

Additional context

Node: 20.5.0
Xcode 16.1
React Native: 0.75.4
@datadog/datadog-ci: 2.42.0
@datadog/mobile-react-native version: 2.4.3

contents of xcode.env

# This `.xcode.env` file is versioned and is used to source the environment
# used when running script phases inside Xcode.
# To customize your local environment, you can create an `.xcode.env.local`
# file that is not versioned.

# NODE_BINARY variable contains the PATH to the node executable.
#
# Customize the NODE_BINARY variable here.
# For example, to use nvm with brew, add the following line
# . "$(brew --prefix nvm)/nvm.sh" --no-use

export NODE_BINARY=$(command -v node)

contents of xcode.env.local

export NODE_BINARY=/Users/alex.curran/.nvm/versions/node/v20.5.0/bin/node

Command

react-native

@amlcurran amlcurran added the bug Something isn't working label Dec 12, 2024
@github-actions github-actions bot added the rum Related to [dsyms, flutter-symbols, unity-symbols, react-native, sourcemaps] label Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working rum Related to [dsyms, flutter-symbols, unity-symbols, react-native, sourcemaps]
Projects
None yet
Development

No branches or pull requests

1 participant