Closed abordeau closed 3 years ago
This happens to me too.
I'm having the same issue :/
although my next.config.js file looks a lil different
const withPlugins = require('next-compose-plugins')
const { withSentryConfig } = require('@sentry/nextjs')
const withPWA = require('next-pwa')
const runtimeCaching = require('next-pwa/cache')
const withSvgr = require('next-svgr')
const sentryWebpackPluginOptions = {
// For all available options, see:
// https://github.com/getsentry/sentry-webpack-plugin#options.
}
const PWAPluginOptions = {
pwa: {
dest: 'public',
runtimeCaching,
},
}
module.exports = withPlugins([withSvgr, [withPWA, PWAPluginOptions], [withSentryConfig, sentryWebpackPluginOptions]])
I also tried with withPlugins and yes, same error.
@abordeau did you try any other solution or any other library?
I close this issue since the bug was resolve by Sentry teams (https://github.com/getsentry/sentry-javascript/issues/3538) Thanks anyway šš¼
Actually, the Issue was reopened again: https://github.com/getsentry/sentry-javascript/issues/3538#issuecomment-856896363
Summary
I tried to use next-pwa with the sentry integration but the service-worker is not register in this case.
Versions
next-pwa
: 3.1.0next
:10.2.0@sentry/nextjs
: ^6.3.6How To Reproduce
Steps to reproduce the behavior:
yarn install
and run it withyarn dev
Expected Behaviors
The
sw.js
file and theworkbox.js
are created in the public folder but they are not registered by the browserThis is the next.config.js file I used :