-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
"RewriteFrames is not a constructor" when attempting to add sentry to a TypeScript app #2021
Comments
@mtthwhggns we missed docs update, not you, sorry :) tl;dr import { RewriteFrames } from '@sentry/integrations';
Sentry.init({
dsn: '',
integrations: [new RewriteFrames({
root: global.__rootdir__
})]
}); I'll update the docs, thanks! |
Thank you @kamilogorek This seems to work perfectly! |
The docs are still out-of-date. https://docs.sentry.io/platforms/node/typescript/ I had to Google to find this thread and fix my issue as well. https://github.com/getsentry/sentry-docs/blob/master/src/collections/_documentation/platforms/node/typescript.md |
@emhagman I should've done it the same time I wrote the comment above 😒 Sorry about that. |
No problem, thanks! |
Hi! |
Thanks @Heavenston! Updated getsentry/sentry-docs#1089 :) |
|
@alexeychikk |
Nothing is working out of the box, setup process in unclear and totally broken, source maps uploading is a mess. Sentry is just a waste of time. Spent literally two days and had no success. |
Package + Version
@sentry/browser
- "^5.0.6"@sentry/node
raven-js
raven-node
(raven for node)Version:
Description
I followed the guidance in here; https://docs.sentry.io/platforms/node/typescript/ to add Sentry and send source maps from a React + TypeScript app.
I define
global.__rootdir__
, as the docs suggest, but, and as per the page from the docs, add the following to one of the earliest loaded files;Now, when starting the app, it gives the following;
I've also tried removing the whole
integrations
part fromSentry.init
. When I do this, errors get reported correctly, and the "source maps" get uploaded (so I'm satisfied that everything else seems to be working), but the backtraces remain unreadable.Have I missed something here?
The text was updated successfully, but these errors were encountered: