OS:
_Platform:_
Output of node -v && npm -v && npm ls --prod --depth=0
v10.11.0
6.4.1
[email protected] /Users/tt/dev/app
βββ @expo/[email protected]
βββ [email protected]
βββ [email protected]
βββ [email protected]
βββ [email protected]
βββ [email protected]
βββ [email protected]
βββ [email protected]
βββ [email protected]
βββ [email protected]
βββ [email protected]
βββ [email protected]
βββ [email protected]
βββ [email protected]
βββ [email protected]
βββ [email protected]
βββ [email protected]
βββ [email protected]
βββ [email protected]
βββ [email protected]
βββ [email protected]
βββ [email protected]
βββ [email protected]
βββ [email protected]
βββ [email protected]
βββ [email protected]
Xcode 9.4.1
Config:
Sentry.config('https://[email protected]/...', {
....
}).install()
I have following issue:
Archive or build from Xcode fails on step "Run custom shell script 'Bundle React Native code and images' with error: No such file or directory (os error 2)
Run or 'react-native run-ios' works.
Config in this step:
export NODE_BINARY=node
export SENTRY_PROPERTIES=sentry.properties
../node_modules/@sentry/cli/bin/sentry-cli react-native xcode \
../node_modules/react-native/scripts/react-native-xcode.sh
Everything works if I remove the sentry-cli part.
export NODE_BINARY=node
export SENTRY_PROPERTIES=sentry.properties
../node_modules/react-native/scripts/react-native-xcode.sh
Tried to install node_modules with both npm and yarn.
Recently updated React Native from 0.54.0 to 0.57.1.
Steps to reproduce:
Actual result:
No such file or directory (os error 2) when trying to run sentry-cli script. Expected result:
This should fix it for you: https://github.com/facebook/react-native/pull/21383
@sundbry DidnΒ΄t solve my issue :/
Are you using nvm?
Just want to find out if node is the problem.
Also, can you make sure ../node_modules/@sentry/cli/bin/sentry-cli this file exists?
Installed node via Homebrew. which node = /usr/local/opt/node@8/bin/node (Downgraded to node8 to see if node 10 was the problem).
../node_modules/@sentry/cli/bin/sentry-cli exists.
Do you know what file is 'not found'?
On Fri, Sep 28, 2018, 01:13 Tobias TΓΆrnros notifications@github.com wrote:
Installed node via Homebrew. which node = /usr/local/opt/node@8/bin/node
(Downgraded to node8 to see if node 10 was the problem).../node_modules/@sentry/cli/bin/sentry-cli exists.
β
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/getsentry/react-native-sentry/issues/484#issuecomment-425358542,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAhhmWZMJzNPFQ7OEVjx3_re1Uri033Gks5ufdo4gaJpZM4W67AN
.
Same issue for me. I'm on an older version of react-native@ so I added the same changes manually to my react-native-xcode.sh
line 89 > type "$NODE_BINARY" >/dev/null 2>&1 || nodejs_not_found
line 106 > "$NODE_BINARY" "$CLI_PATH" $BUNDLE_COMMAND \
$CONFIG_ARG \
--entry-file "$ENTRY_FILE" \
--platform ios \
--dev $DEV \
--reset-cache \
--bundle-output "$BUNDLE_FILE" \
--assets-dest "$DEST" \
$EXTRA_PACKAGER_ARGS
same error. I cannot exactly put an absolute path as my NODE_BINARY as it changes on different developer machines and CI.
I was having this problem and in my case it was because of the path I had for BUNDLE_CONFIG.
Before
export SENTRY_PROPERTIES=sentry.properties
export NODE_BINARY=node
export BUNDLE_CONFIG="./rn-cli.config.js"
../node_modules/@sentry/cli/bin/sentry-cli react-native xcode \
../node_modules/react-native/scripts/react-native-xcode.sh
After
export SENTRY_PROPERTIES=sentry.properties
export NODE_BINARY=node
export BUNDLE_CONFIG=rn-cli.config.js
../node_modules/@sentry/cli/bin/sentry-cli react-native xcode \
../node_modules/react-native/scripts/react-native-xcode.sh
Installed node via Homebrew.
which node = /usr/local/opt/node@8/bin/node(Downgraded to node8 to see if node 10 was the problem).
../node_modules/@sentry/cli/bin/sentry-cliexists.
@tobiastornros did this solve your problem? I'm having the same problem as you described
For me this probelm was caused by having spaces in my project directory. My project was "Users/me/Desktop/Some Folder/my-project" - I just took the space away from "Some Folder"
Currently having the same problem with react-native 0.60.3 and Android build. Funnily enough, the problem does not occur when I have Hermes enabled.
Side note, sourcemaps not working with Hermes enabled.
If anyone is stuck with the same problem, you can follow these steps:
All these steps can be added to package.json in a single command and run via yarn/npm. It worked with Hermes disabled, gonna test with Hermes enabled next week.
@cayodonatti That's βοΈ a work-around - I don't think the solution is to manually upload sourcemaps with the sentry-cli, this should work out of the box by the react-native-sentry package. (I'm not referring to Hermes)
I'm seeing this on Android only as well, React native 0.59.10
I am closing all old issues, please if this is still a problem feel free to revive it.
Also, consider moving to our new SDK @sentry/react-native if it still happens there please open a new issue.
I'm seeing the same issue, using version 1.0.6, but only when building a new version of the app under CircleCI. It does not happen on my local machine.
Here's the error I'm getting:
Processing react-native sourcemaps for Sentry upload.
INFO 2019-09-24 15:58:06.135443890 +00:00 bundle path: /home/circleci/project/android/app/build/generated/assets/react/stagingRelease/index.android.bundle
INFO 2019-09-24 15:58:06.135461737 +00:00 sourcemap path: /home/circleci/project/android/app/build/generated/sourcemaps/react/stagingRelease/index.android.bundle.map
DEBUG 2019-09-24 15:58:06.136041534 +00:00 Non-file bundle found
> Analyzing 2 sources
DEBUG 2019-09-24 15:58:06.136122438 +00:00 error: running update nagger
DEBUG 2019-09-24 15:58:06.136128457 +00:00 skipping update nagger because session is not attended
error: No such file or directory (os error 2)
DEBUG 2019-09-24 15:58:06.136878112 +00:00 client close; no transport to shut down (from sentry)
EDIT
The issue had nothing to do with Sentry but with Gradle failing to actually output the files expected by Gradle. This solution is what fixed for me: https://stackoverflow.com/a/56027775
Most helpful comment
Currently having the same problem with react-native 0.60.3 and Android build. Funnily enough, the problem does not occur when I have Hermes enabled.
Side note, sourcemaps not working with Hermes enabled.