Skip to content

docs: sentry-expo-upload-sourcemaps not found throubleshooting #3627

@fobos531

Description

@fobos531

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:
CleanShot 2024-02-23 at 20 04 19@2x

Expected result:

I should be able to successfully upload sourcemaps to sentry.

Metadata

Metadata

Assignees

No fields configured for issues without a type.

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions