Attempted import error: 'withSentry' is not exported from '@sentry/nextjs'.
See original GitHub issue- 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";
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:17 (6 by maintainers)
Top Results From Across the Web
Attempted import error:' is not exported from - Stack Overflow
I had the same error, but used export default and it worked! declare class lama { // code here .. export default lama...
Read more >@sentry/nextjs - npm
Start using @sentry/nextjs in your project by running `npm i ... sentry.client.config.js import * as Sentry from '@sentry/nextjs'; ...
Read more >Build fails after adding Sentry to a Next.js app with target
After adding Sentry to a Next.js app with target: 'serverless' using npx @sentry/wizard -i nextjs , I get the following error:
Read more >@sentry/utils | Yarn - Package Manager
Changelog. Unreleased. "You miss 100 percent of the chances you don't take. — Wayne Gretzky" — Michael Scott. 7.27.0. This release exports the...
Read more >Blog - Next.js 11.1
The reported issue did not directly harm users, ... Starting with Next.js 11.1, you can now import npm packages using ES Modules (e.g. ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.