Comments (8)
The workaround is downgrade to 1.3.0, we're working to fix it.
from sveltekit.
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.
Please try with @sveltejs/kit
version 1.3.7
from sveltekit.
@benmccann adapter still being called before pwa plugin, I'll try with a fresh install.
from sveltekit.
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.
This is a bug in Vite. It's not using an await
when calling bundle.close()
from sveltekit.
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.
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)
- Example project renders home page on missing routes HOT 5
- Failed to load config v0.2.1 HOT 3
- Add a test
- Can't get @vite-pwa/sveltekit to work out-of-the-box HOT 14
- Having an issue with ssr = false HOT 8
- Issues with SPA HOT 1
- Inject Register script or inline has no effect on output HTML. HOT 6
- [Info] Cloudflare Adapter Routes misses vite-pwa HOT 1
- Cannot find module 'virtual:pwa-info' or its corresponding type declarations HOT 26
- Importing 'virtual:pwa-register' causes bug on build HOT 3
- Make client Javascript work offline HOT 2
- Deprecated packages HOT 2
- Uncaught (in promise) non-precached-url: non-precached-url :: [{"url":"/"}] HOT 13
- Navigating to SvelteKit error page after a new build causes infinite page reload loop HOT 5
- InjectManifest `The 'swSrc' file can't be read. ENOENT: no such file or directory` error on Gitlab CI HOT 5
- Uncaught ReferenceError: process is not defined for injectManifest HOT 1
- Error: [InjectManifest] 'plugins' property is not expected to be here. HOT 1
- Support Node v20 HOT 1
- Uncaught SyntaxError: Unexpected token 'export' HOT 3
- `_app/version.json` should be included in sw precache manifest
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sveltekit.