Closed rashidpathiyil closed 1 year ago
Hi @rashidpathiyil , could you try again by removing experimental
things from the nuxt.config.ts
?
Also /cc @antfu If you have a clue, sounds like to be related to UnoCSS styles.
@rashidpathiyil Any updates on this ?
It's working if I clear Cookies before load the page
I am facing similer issue with this config Now I am cleaning Cookies before refresh to load correctly cc @kevinmarrec
import { defineNuxtConfig } from 'nuxt'
// https://v3.nuxtjs.org/api/configuration/nuxt.config
export default defineNuxtConfig({
modules: ['@nuxtjs/color-mode', '@kevinmarrec/nuxt-pwa', '@vueuse/nuxt'],
buildModules: ['@nuxtjs/tailwindcss'],
colorMode: {
preference: 'forest', // default theme 'system' or 'dark'
dataValue: 'theme', // activate data-theme in <html> tag
classSuffix: '',
},
pwa: {
meta: {
// Generate splash screens for iOS
mobileAppIOS: true,
},
workbox: {
enabled: true,
},
},
})
@rashidpathiyil Workbox enabled
option in development can lead to issues like the one you're facing, try to remove it. If you omit it it will still be enabled for production only.
@rashidpathiyil Workbox
enabled
option in development can lead to issues like the one you're facing, try to remove it. If you omit it it will still be enabled for production only.
Yea, Currently I turned it off at development
@rashidpathiyil Is everything working as expected when turning it off then ?
Yes, I am not facing any issues now. @kevinmarrec
Great, closing this issue then.
Error:
Reproduce the error:
@kevinmarrec/nuxt-pwa
on this repo vitesse-nuxt3