-
-
Notifications
You must be signed in to change notification settings - Fork 342
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
No such file or directory (os error 2) for sentry-cli on step bundle RN code and images #484
Comments
This should fix it for you: facebook/react-native#21383 |
@sundbry Didn´t solve my issue :/ |
Are you using |
Installed node via Homebrew.
|
Do you know what file is 'not found'?
…On Fri, Sep 28, 2018, 01:13 Tobias Törnros ***@***.***> wrote:
Installed node via Homebrew. which node = ***@***.***/bin/node
(Downgraded to node8 to see if node 10 was the problem).
..***@***.***/cli/bin/sentry-cli exists.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#484 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAhhmWZMJzNPFQ7OEVjx3_re1Uri033Gks5ufdo4gaJpZM4W67AN>
.
|
Summary: Fix build errors when path to $NODE_BINARY contains spaces: error: Can't find '/Path/With Spaces/To/node' binary to build React Native bundle Why would $NODE_BINARY contain spaces? In my case, I am using sentry-cli which wraps the NODE_BINARY in it's own executable. The local path to the project, and thus the $NODE_BINARY, contains a space on my GoCD build agent. '/Users/go/Library/Application Support/Go Agent/pipelines/my-ios-app/node_modules/sentry/cli/sentry-cli See getsentry/sentry-react-native#484 getsentry/sentry-react-native#389 Pull Request resolved: #21383 Differential Revision: D10851141 Pulled By: yungsters fbshipit-source-id: f46853ac8b57957864e0d1a76b8513403223fccb
Summary: Fix build errors when path to $NODE_BINARY contains spaces: error: Can't find '/Path/With Spaces/To/node' binary to build React Native bundle Why would $NODE_BINARY contain spaces? In my case, I am using sentry-cli which wraps the NODE_BINARY in it's own executable. The local path to the project, and thus the $NODE_BINARY, contains a space on my GoCD build agent. '/Users/go/Library/Application Support/Go Agent/pipelines/my-ios-app/node_modules/sentry/cli/sentry-cli See getsentry/sentry-react-native#484 getsentry/sentry-react-native#389 Pull Request resolved: #21383 Differential Revision: D10851141 Pulled By: yungsters fbshipit-source-id: f46853ac8b57957864e0d1a76b8513403223fccb
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
After
|
@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" |
Summary: Fix build errors when path to $NODE_BINARY contains spaces: error: Can't find '/Path/With Spaces/To/node' binary to build React Native bundle Why would $NODE_BINARY contain spaces? In my case, I am using sentry-cli which wraps the NODE_BINARY in it's own executable. The local path to the project, and thus the $NODE_BINARY, contains a space on my GoCD build agent. '/Users/go/Library/Application Support/Go Agent/pipelines/my-ios-app/node_modules/sentry/cli/sentry-cli See getsentry/sentry-react-native#484 getsentry/sentry-react-native#389 Pull Request resolved: facebook#21383 Differential Revision: D10851141 Pulled By: yungsters fbshipit-source-id: f46853ac8b57957864e0d1a76b8513403223fccb
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. |
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 |
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. |
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:
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 |
OS:
Platform:
Output of
node -v && npm -v && npm ls --prod --depth=0
Xcode 9.4.1
Config:
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:
Everything works if I remove the sentry-cli part.
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:
The text was updated successfully, but these errors were encountered: