Skip to content
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

cli still references invalid enableSpotlight (removed in 6.0.0) #4403

Open
ethanneff opened this issue Dec 23, 2024 · 1 comment · May be fixed by getsentry/sentry-wizard#750
Open

cli still references invalid enableSpotlight (removed in 6.0.0) #4403

ethanneff opened this issue Dec 23, 2024 · 1 comment · May be fixed by getsentry/sentry-wizard#750

Comments

@ethanneff
Copy link

What React Native libraries do you use?

React Native without Frameworks

Are you using sentry.io or on-premise?

sentry.io (SaS)

@sentry/react-native SDK Version

6.4.0

How does your development environment look like?

n/a

Sentry.init()

n/a

Steps to Reproduce

  1. run npx @sentry/wizard@latest -i reactNative
  2. see the cli give the wrong params
◇  Add the following code to your App.js or _layout.tsx file: (This ensures the Sentry SDK is ready to capture errors.)

import * as Sentry from '@sentry/react-native';

Sentry.init({
  dsn: ''
  // uncomment the line below to enable Spotlight (https://spotlightjs.com)
  // enableSpotlight: __DEV__,
});

Expected Result

spotlight: __DEV__, instead of enableSpotlight: __DEV__,

Actual Result

enableSpotlight: __DEV__,

@antonis
Copy link
Collaborator

antonis commented Dec 23, 2024

Thank you for reporting @ethanneff 🙇

The enableSpotlight option is indeed deprecated in v6.

I've opened a PR to align this.

@antonis antonis moved this from Needs Discussion to Needs Review in Mobile & Cross Platform SDK Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Status: Needs Review
2 participants