sentry-javascript: Attempted import error: 'withSentry' is not exported from '@sentry/nextjs'.
- 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/nextjs @ 6.7.0
- next @ 10.0.6`
Description
Describe your issue in detail, ideally, you have a reproducible demo that you can show.
Attempted import error: 'withSentry' is not exported from '@sentry/nextjs'.
Though exported in handlers.ts enabled import into api/index handler.
Same with import * as Sentry from "@sentry/nextjs";
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 4
- Comments: 17 (7 by maintainers)
TIL! Thanks for sharing your setup, @ka2n!
GA, @onurtemizkan I have created an example repo where you can reproduce this issue. https://github.com/mavlikwowa/sentry_nexjs_issue When I had been creating this I payed an attention that error appointed when I used API call in getInitialProps function:
Perhaps, it can help us to resolve this probem. P.S I can’t publish all working repo due to NDA, sorry. There’s only for error’s reproducing.