-
-
Notifications
You must be signed in to change notification settings - Fork 338
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
main.jsbundle.map not found in bundle phase #3723
Comments
Hi @francescov1, It seems like the packager source map was not found at the expected location From the stack trace I don't see why that would happen, can you share the build phase changes, do they match our documentation? https://docs.sentry.io/platforms/react-native/manual-setup/manual-setup/#configure-automatic-source-maps-upload |
@krystofwoldrich Thanks for the reply. I used the automated CLI setup. Here's the relevant build phases: Bundle React Native code and images (note the change I made at the end, this is the workaround I had to do to get this to work, essentially skip the Sentry step). set -e
# https://github.com/facebook/react-native/issues/25522#issuecomment-509036251
export NODE_BINARY=$(which node)
WITH_ENVIRONMENT="../node_modules/react-native/scripts/xcode/with-environment.sh"
REACT_NATIVE_XCODE="../node_modules/react-native/scripts/react-native-xcode.sh"
#/bin/sh -c "$WITH_ENVIRONMENT \"/bin/sh ../node_modules/@sentry/react-native/scripts/sentry-xcode.sh $REACT_NATIVE_XCODE\""
/bin/sh -c "$WITH_ENVIRONMENT $REACT_NATIVE_XCODE" Upload Debug Symbols to Sentry: /bin/sh ../node_modules/@sentry/react-native/scripts/sentry-xcode-debug-files.sh |
Hi @francescov1, The issue is with the white space in your project path
I'll close the issue, but please let us know if this has not fixed it. |
This is how I fixed the issue after a react native version upgrade: |
@krystofwoldrich Thanks for your response, what exactly do I need to change to fix this? Do you mean to change the entire project name, or is there some path I can tweak for an easy fix? I suspect I just need to escape the whitespace character somewhere in one of the scripts? |
I have the same error, but I don't have spaces in folder structure. So the issue is in something else |
OS:
Platform:
SDK:
@sentry/react-native
(>= 1.0.0)react-native-sentry
(<= 0.43.2)SDK version: 5.20.0
react-native
version: 0.73.6Are you using Expo?
Are you using sentry.io or on-premise?
If you are using sentry.io, please post a link to your issue so we can take a look:
[Link to issue]
Configuration:
(
@sentry/react-native
)I have the following issue:
I can build and run my app fine locally, but when trying to archive, I get an error related to finding a
main.jsbundle.map
fileAs a temporary fix, I reverted the changes made in the
Bundle React Native code and images
phase.Steps to reproduce:
Actual result:
Error. See logs below:
Expected result:
No error
The text was updated successfully, but these errors were encountered: