Skip to content
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

Serverless + Next offline does not work with NextJS SDK #3613

Closed
1 task done
AbhiPrasad opened this issue May 28, 2021 · 6 comments
Closed
1 task done

Serverless + Next offline does not work with NextJS SDK #3613

AbhiPrasad opened this issue May 28, 2021 · 6 comments
Assignees
Labels
Package: nextjs Issues related to the Sentry Nextjs SDK Type: Bug

Comments

@AbhiPrasad
Copy link
Member

Package + Version

  • @sentry/nextjs@4.6.1

Description

Ref: #3575 (comment)

https://github.com/hanford/next-offline

I was having the same issue and using target: 'experimental-serverless-trace' fixed it. Then, however, a new issue arose, which seems to be related to building a service worker with workbox via the nextOffline plugin. Here's the error:

Failed to compile.
You must provide the URL of lib/mappings.wasm by calling SourceMapConsumer.initialize({ 'lib/mappings.wasm': ... }) before using SourceMapConsumer

And here's a link to the repo so you can reproduce it: https://github.com/moovweb/next-sentry-test

@vishalvijay
Copy link

This issue is happening even with out next offline, so created a new issue with more info #3621

@AbhiPrasad
Copy link
Member Author

@markbrocato This seems to be fixed with a combination of Next 11 + Webpack 5 + @sentry/nextjs >= 6.9.0. Tested with your repo https://github.com/moovweb/next-sentry-test and with some other test repos. Please let us know if it works for you!

@AbhiPrasad AbhiPrasad self-assigned this Jul 13, 2021
@AbhiPrasad AbhiPrasad added the Package: nextjs Issues related to the Sentry Nextjs SDK label Jul 13, 2021
@AbhiPrasad
Copy link
Member Author

Closing, please re-open if you are still encountering issue.

@jasonadkison
Copy link

@AbhiPrasad Hi, I'm also having this issue using Next 11 + Webpack 4 and I'm not able to update to Webpack 5. Is there a path forward for Webpack 4 projects?

@AbhiPrasad
Copy link
Member Author

@jasonadkison Mind opening a new issue with your next.config.js, your Sentry SDK version and your error logs?

@jasonadkison
Copy link

@AbhiPrasad new issue opened: #4133

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Package: nextjs Issues related to the Sentry Nextjs SDK Type: Bug
Projects
None yet
Development

No branches or pull requests

3 participants