You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/platforms/javascript/common/troubleshooting/index.mdx
+12-1
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,14 @@ If you set up the Sentry SDK and it's not sending any data to Sentry:
18
18
- Set `debug: true` in the `Sentry.init()` options and observe your console output when you start your application. The SDK may tell you why it is not sending any data.
19
19
- Check the [Stats](https://sentry.io/orgredirect/organizations/:orgslug/stats/) and [Suscription](https://sentry.io/orgredirect/organizations/:orgslug/settings/billing/overview/) pages in Sentry. You may have ran out of quota.
- Check that you didn't set `sideEffects: false` in your `package.json`.
23
+
Setting `sideEffects` to false in your `package.json` will cause Next.js to
24
+
tree shake the SDK code too agressively - effectively deleting any
25
+
`Sentry.init()` calls. Setting `sideEffects: false` is incorrect when you are
26
+
using the Sentry SDK.
27
+
</PlatformSection>
28
+
21
29
</Expandable>
22
30
23
31
<Expandablepermalinktitle="Updating to a new Sentry SDK version">
@@ -448,7 +456,10 @@ shamefully-hoist=true
448
456
```
449
457
450
458
<Alert level="warning">
451
-
**Note**: While `shamefully-hoist=true` usually isn't the ideal solution from a dependency management perspective, it's sometimes necessary for compatibility with certain packages that expect Node.js module resolution behavior similar to npm or yarn.
459
+
**Note**: While `shamefully-hoist=true` usually isn't the ideal solution from
460
+
a dependency management perspective, it's sometimes necessary for
461
+
compatibility with certain packages that expect Node.js module resolution
0 commit comments