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
Provide a link to the affected event from your Sentry account
Package + Version
@sentry/browser
@sentry/node
raven-js
raven-node(raven for node)
other: @sentry/nextjs
Version:
6.3.5
Description
My NextJS app uses typescript, the wizard was not smart enough to figure that out and produce TypeScript compatible files for sentry.client.config.js or sentry.server.config.js
The text was updated successfully, but these errors were encountered:
Oh, I see now that it explicitly can't be TS, and it explicitly also can't be in my src directory like all the rest of my code - the @sentry/nextjs library requires that these files be at the root level, and have specific names. The fact these files get magically included without any explicit export and that they need to behave differently than all the other code in my codebase rubs me wrong.
Those files don't require any specific exports because they are injected into the code; so no, they can't be TS. Let me know if you have further questions.
Package + Version
@sentry/browser
@sentry/node
raven-js
raven-node
(raven for node)@sentry/nextjs
Version:
Description
My NextJS app uses typescript, the wizard was not smart enough to figure that out and produce TypeScript compatible files for
sentry.client.config.js
orsentry.server.config.js
The text was updated successfully, but these errors were encountered: