Joaquín Sánchez

Results 1398 comments of Joaquín Sánchez

You can try building your kit app using development in the mode in your local, workbox modules should show a few traces in the console

Here a custom service worker with server pages and server api using nuxt 3 and nuxt 3 v4-compat, check service-worker folder in both repos: - https://github.com/userquin/vite-pwa-nuxt-ssr-pages - https://github.com/userquin/vite-pwa-nuxt4-ssr-pages Here the...

can you try importing the modules (or use the triple slash reference in the corresponding svelte file script)? ```ts // src/app.d.ts import 'vite-plugin-pwa/info'; import 'vite-plugin-pwa/svelte'; // See https://kit.svelte.dev/docs/types#app // for...

@Naviamold1 ![imagen](https://github.com/vite-pwa/sveltekit/assets/6311119/305b6487-d231-41ae-b0f0-540fb3ef1d6e) ![imagen](https://github.com/vite-pwa/sveltekit/assets/6311119/e55096ba-ffdb-4792-b97c-f89dea5bdc1b)

Can you check typescript version? I'm using 5.2.2 EDIT: sorry, you're not using TypeScript

@sksar on SvelteKit there is no entry point (like on Vite: index.html), and so you will need to inject it manually or using virtual pwa script: check the examples (`transformIndexHtml`...

I updated docs yesterday: [virtual pwa info](https://vite-pwa-org.netlify.app/frameworks/#accessing-pwa-info) PR welcome to include some reference in Kit docs.

I guess SvelteKit should switch to module resolution `bundler`, can you edit the `.sveltekit/tsconfig.json` file and replace `"moduleResolution": "node"` to `"moduleResoluton": "bundler"` (will be override once dev server restarted)?

@Naviamold1 can your trying adding a new `src/vite-env.d.ts` file removing the imports/references in `src/app.d.ts`? ```ts /// /// ``` or (it seems your are using the virtual for VanillaJS) ```ts ///...

> Sure! Could you give me a hint where to find the docs as source code? I could not find a link on the page directly Docs can be found...