Git Product home page Git Product logo

Comments (8)

userquin avatar userquin commented on July 18, 2024 1

The workaround is downgrade to 1.3.0, we're working to fix it.

from sveltekit.

userquin avatar userquin commented on July 18, 2024

It seems a regression in 1.3.1: kit closeBundle hook is called only on client build, and must be called only in server build.

from sveltekit.

benmccann avatar benmccann commented on July 18, 2024

Please try with @sveltejs/kit version 1.3.7

from sveltekit.

userquin avatar userquin commented on July 18, 2024

@benmccann adapter still being called before pwa plugin, I'll try with a fresh install.

from sveltekit.

benmccann avatar benmccann commented on July 18, 2024

The problem is that the PWA plugin is generating its files after SvelteKit calls await vite.build to invoke the client build and it returns. There's probably a missing await somewhere in Vite or the PWA plugin or something. Everything in SvelteKit looks okay as far as I can tell.

I think when SvelteKit's client build was running first it was just covering this issue up

from sveltekit.

benmccann avatar benmccann commented on July 18, 2024

This is a bug in Vite. It's not using an await when calling bundle.close()

from sveltekit.

drewbitt avatar drewbitt commented on July 18, 2024

This issue title & post is not descriptive; is this related to this error in Sveltekit on recent versions?

pnpm add @vite-pwa/sveltekit -D
# add SvleteKitPWA to vite.config.ts as in docs
pnpm run dev

failed to load config from C:\GitHub\MyStuff\Someplice\vite.config.ts
error when starting dev server:
Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'vite-plugin-pwa' 

from sveltekit.

userquin avatar userquin commented on July 18, 2024

@drewbitt

This issue is about kit and vite changes breaking the pwa plugin . It seems Vite bug is fixed, now we need to update this plugin to run with latest kit changes, check PR pages, we need to review a few things and we should release a new version soon.

from sveltekit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.