sentry-react-native: sentry-expo-upload-sourcemaps not found on registry
OS:
- Windows
- MacOS
- Linux
Platform:
- iOS
- Android
SDK:
-
@sentry/react-native
(>= 1.0.0) -
react-native-sentry
(<= 0.43.2)
SDK version: 5.19.0
react-native
version: 0.73.4
Are you using Expo?
- Yes
- No
Are you using sentry.io or on-premise?
- sentry.io (SaaS)
- on-premise
Configuration:
(@sentry/react-native
)
Sentry.init({
dsn: process.env.SENTRY_DSN,
enableWatchdogTerminationTracking: false,
enableAppHangTracking: false,
tracesSampleRate: 0.2,
integrations: [
new Sentry.ReactNativeTracing({
tracingOrigins: ['localhost', /^\//, /^https:\/\//],
routingInstrumentation,
}),
],
normalizeDepth: 10,
attachScreenshot: true,
});
I have the following issue: I can’t seem to be able to use the npx sentry-expo-upload-sourcemaps dist
command to upload the sourcemaps to Sentry.
Steps to reproduce:
- install @sentry/react-native in an empty expo project
- run
npx sentry-expo-upload-sourcemaps dist
Actual result:
➜ npx sentry-expo-upload-sourcemaps dist
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/sentry-expo-upload-sourcemaps - Not found
npm ERR! 404
npm ERR! 404 'sentry-expo-upload-sourcemaps@*' is not in this registry.
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
Additional error log output:
Expected result:
I should be able to successfully upload sourcemaps to sentry.
About this issue
- Original URL
- State: open
- Created 4 months ago
- Reactions: 1
- Comments: 19 (10 by maintainers)
I can confirm that this works for me as well.
We should add troubleshooting note to docs and then we can close this issue.
This happens to me on the codebase that has an expo app as part of the monorepo (yarn workspaces), I can try to put together some small repro in the end of the week.
I was running into the same issue, but running:
works, as the script is part of the
@sentry/react-native
package in thenode_modules
.you could also run: