Comments (14)
@Nickersoft found the problem, we need to create the .svelte-kit/output/client
folder, since the kit pwa plugin runs after prerender but before adapter processes, that folder is not there on first build.
Can you just create client folder and test again? I'll send a fix ASAP.
EDIT: the folder is recreated every time we run build and so will not work
from sveltekit.
@Nickersoft using Node 18 with linked repo:
from sveltekit.
and the preview in oflline mode:
from sveltekit.
try removing node_modules
and reinstalling dependencies
from sveltekit.
My apologies, my reproduction is linked at the bottom of the issue. The site you just ran is the example repo I gave that seems to be working, despite having the same setup as my failing reproduction. I've tried wiping node_modules, but to no avail.
from sveltekit.
ok, I'll check it later...
from sveltekit.
Thanks for looking into this @userquin! Interesting... any idea why it works for the first repo I linked, but not for my reproduction?
from sveltekit.
Using another previous kit version, iirc 1.5.0
from sveltekit.
Huh... could have sworn I tried 1.5.0 and it still failed. Maybe it was using a version range I wasn't aware of.
from sveltekit.
@Nickersoft can you try adding some pwa manifest icons?
from sveltekit.
I copied the exact manifest from WhatSend (that contains manifest icons), as well as its assets (in ./src/assets
), and am still receiving the same error
from sveltekit.
@Nickersoft can you test with latest release v0.2.2
?
from sveltekit.
Whoops, just saw this – seems to be building now, thanks!
from sveltekit.
.svelte-kit/output/server/sw.js
.svelte-kit/output/server/workbox-fc5f5acf.js
warnings
One of the glob patterns doesn't match any files. Please remove or fix the following: {
"globDirectory": "/home/msi/tatan/.svelte-kit/output",
"globPattern": "prerendered/**/*.html",
"globIgnores": [
"server/*.*",
"server/sw.js",
"server/workbox-*.js"
]
}
I got this when no routes are prerendered.
from sveltekit.
Related Issues (20)
- 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 6
- 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
- Please document that images that are outside of `/static` will NOT build in production HOT 2
- Workbox responses with cached data for network only requests HOT 20
- One of the glob patterns doesn't match any files HOT 6
- Please provide a minimal example
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.