DEV Community

Discussion on: Create a PWA with Sveltekit | Svelte

Collapse
 
tavelli profile image
Dan Tavelli

hey good article. i used this setup for a sveltekit app and it works great but i was having issue with subsequent updates. it would never pick up the new deploy because the index.html was cached i believe? i am also using the static prerender sveltekit adapter so possibly that is related. i ended up having to modify app.html for it to detect a change and then it would pick up the new service worker. have you run into this issue?

Collapse
 
swiftwinds profile image
SwiftWinds

I was having the same issue, but I modified his script slightly and it worked again. See my comment above :)

Collapse
 
100lvlmaster profile image
Navin Kodag • Edited

I use the vercel adapter when deploying. I haven't used ssg with sveltekit yet. But I do have an issue whenever I upgrade the packages. Sveltekit throws module not defined errors if i don't set the version to "next" instead of something like "^1.0.0". Have you joined their discord server?