You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Our app uses Next.js v11 and Webpack 4. When building a service worker with workbox via next-offline, withSentryConfig causes our builds to fail with the following error:
You must provide the URL of lib/mappings.wasm by calling SourceMapConsumer.initialize({ 'lib/mappings.wasm': ... }) before using SourceMapConsumer
I was able to reproduce the error in the project you provided, and deleting and recreating package-lock.json using [email protected] fixed it for me. Also, removing package-lock.json and using yarn instead worked well both locally and on Vercel.
The issue seems originated from the dependency resolution of source-map package. That specific package-lock.json (lockfile version 1) somehow favours an earlier (buggy) version of it.
Closing the issue, as I can't see a way to action this on the SDK side at the moment. But feel free to reopen if that doesn't work.
Package + Version
@sentry/browser
@sentry/node
raven-js
raven-node
(raven for node)@sentry/nextjs
Version:
Description
Ref: #3613
Our app uses Next.js v11 and Webpack 4. When building a service worker with workbox via
next-offline
,withSentryConfig
causes our builds to fail with the following error:We are not able to upgrade our project to Webpack 5, as was previously recommended.
Here's a link to the repo where the issue can be reproduced: https://github.com/jasonadkison/next-sentry-error/
The text was updated successfully, but these errors were encountered: