-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
Meta: Help WantedPackage: angularIssues related to the Sentry Angular SDKIssues related to the Sentry Angular SDK
Description
- Review the documentation: https://docs.sentry.io/
- Search for existing issues: https://github.com/getsentry/sentry-javascript/issues
- Use the latest release: https://github.com/getsentry/sentry-javascript/releases
- Provide a link to the affected event from your Sentry account
Package + Version
-
@sentry/angular
: 6.14.1 -
@sentry/tracing
: 6.14.1
Description
In my angular application, I do this to initialize sentry:
Sentry.init({
...environment.sentryApi,
integrations: [
new Sentry.Integrations.TryCatch({
XMLHttpRequest: false
}),
new Integrations.BrowserTracing({
routingInstrumentation: Sentry.routingInstrumentation
})
],
tracesSampleRate: 0.5
});
This works fine when running the webapp, but recently I tried doing prerendering and I got the following error:
✖ Prerendering routes to /[...]/www/browser failed.
Cannot read property 'pathname' of undefined
When I remove this part:
new Integrations.BrowserTracing({
routingInstrumentation: Sentry.routingInstrumentation
})
Then everything works fine.
Metadata
Metadata
Assignees
Labels
Meta: Help WantedPackage: angularIssues related to the Sentry Angular SDKIssues related to the Sentry Angular SDK