-
Notifications
You must be signed in to change notification settings - Fork 83
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
Uploading source maps for updates not working #319
Comments
As per the instructions in our docs, you should rename the bundles only, not the map files. |
Related to #313? |
I misunderstood the doc. Now it works, thanks ! I did a script in order to upload source map from eas update if anyone wants it (run it
|
Worked for us 🙌 |
Summary
I use expo-dev-client. When I build my app, source maps are uploaded, and I can see clearly the error on sentry thanks to postPublish script.
I followed instructions on the doc https://docs.expo.dev/guides/using-sentry/#uploading-source-maps-for-updates for uploading source maps, but it isn't working 😔. I can't see where is the error due to wrong source maps :
Managed or bare workflow? If you have
ios/
orandroid/
directories in your project, the answer is bare!managed
What platform(s) does this occur on?
Android, iOS
SDK Version (managed workflow only)
47
Environment
expo-env-info 1.0.5 environment info:
System:
OS: macOS 13.2
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 16.17.1 - ~/.nvm/versions/node/v16.17.1/bin/node
Yarn: 1.22.19 - ~/projects/cocolis-react-native/node_modules/.bin/yarn
npm: 9.3.1 - ~/.nvm/versions/node/v16.17.1/bin/npm
Watchman: 2022.11.07.00 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.11.3 - /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 22.2, iOS 16.2, macOS 13.1, tvOS 16.1, watchOS 9.1
IDEs:
Android Studio: 2021.3 AI-213.7172.25.2113.9014738
Xcode: 14.2/14C18 - /usr/bin/xcodebuild
npmPackages:
expo: ^47.0.0 => 47.0.8
react: 18.1.0 => 18.1.0
react-dom: 18.1.0 => 18.1.0
react-native: 0.70.5 => 0.70.5
npmGlobalPackages:
eas-cli: 3.5.2
expo-cli: 6.1.0
Expo Workflow: managed
Reproducible demo or steps to reproduce from a blank project
It generates :
ios-$hash.js
ios-$hash.map
android-$hash.js
android-$hash.map
I use
nativeVersion
as dist because in mySentry.init
, dist is set tonativeVersion
. I tried to change it toeas update id
but it does the same.I already tested to rename bundle files for matching build bundle files, but it didn't work either.
ios-$hash.js
→ main.jsbundleios-$hash.map
→ main.jsbundle.mapandroid-$hash.js
→ index.android.bundleandroid-$hash.map
→ index.android.bundle.map0B
for both os.The text was updated successfully, but these errors were encountered: