Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Breaks with latest Sveltekit: No such file or directory .svelte-kit/output/client/sw.js #42

Closed
madeleineostoja opened this issue Apr 7, 2023 · 2 comments

Comments

@madeleineostoja
Copy link

madeleineostoja commented Apr 7, 2023

I just updated all my Sveltekit dependencies to their latest versions and it broke this plugin (also updated to latest version).

Relevant stack trace on trying to build my previously functioning app:

files generated
  .svelte-kit/output/server/sw.js
  .svelte-kit/output/server/workbox-6644f8fd.js

warnings
  One of the glob patterns doesn't match any files. Please remove or fix the following: {
  "globDirectory": "[...app path]/.svelte-kit/output",
  "globPattern": "client/**/*.{js,css,ico,png,svg,webp,webmanifest}",
  "globIgnores": [
    "**/node_modules/**/*",
    "server/sw.js",
    "server/workbox-*.js"
  ]
}

[vite-plugin-pwa:sveltekit:build] ENOENT: no such file or directory, open [...app path]/.svelte-kit/output/client/sw.js

Package versions:

  • "@sveltejs/kit": "^1.15.2",
  • "@vite-pwa/sveltekit": "^0.2.1"
  • "@sveltejs/adapter-vercel": "^2.4.1",

PWA config:

  • None
@madeleineostoja
Copy link
Author

Oop found the cause in other compilation errors from latest sveltekit, unrelated to vite-pwa

@userquin
Copy link
Member

userquin commented Apr 7, 2023

@madeleineostoja confirmed it is working properly with the example here with latest kit 1.15.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants