From 98347cfd89505f3f43123ef5a0d2407cd60a9dfa Mon Sep 17 00:00:00 2001 From: Till JS Date: Wed, 15 Apr 2026 15:12:33 +0200 Subject: [PATCH] fix(web): add workbox-window as explicit devDependency vite-plugin-pwa's \`virtual:pwa-register/svelte\` imports workbox-window at build time. The package was resolved transitively via @vite-pwa/ sveltekit but not installed in the webapp's own node_modules when pnpm fetches only the workspace deps in a restricted Docker context. Result: Rollup 'failed to resolve import "workbox-window"' at build. Pinning the direct dep so the Docker build picks it up in the filtered pnpm install. Co-Authored-By: Claude Opus 4.6 (1M context) --- apps/mana/apps/web/package.json | 1 + pnpm-lock.yaml | 3 +++ 2 files changed, 4 insertions(+) diff --git a/apps/mana/apps/web/package.json b/apps/mana/apps/web/package.json index 5a710da19..0c369487f 100644 --- a/apps/mana/apps/web/package.json +++ b/apps/mana/apps/web/package.json @@ -26,6 +26,7 @@ "@tailwindcss/vite": "^4.1.7", "@types/node": "^22.10.5", "@vite-pwa/sveltekit": "^1.1.0", + "workbox-window": "^7.3.0", "@vitest/coverage-v8": "^4.1.2", "@vitest/ui": "^4.1.2", "autoprefixer": "^10.4.20", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 25f009577..4316bf3e3 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1208,6 +1208,9 @@ importers: vitest: specifier: ^4.1.2 version: 4.1.3(@opentelemetry/api@1.9.1)(@types/node@22.19.17)(@vitest/coverage-v8@4.1.3)(@vitest/ui@4.1.3)(jsdom@29.0.2(@noble/hashes@2.0.1))(vite@6.4.2(@types/node@22.19.17)(jiti@2.6.1)(lightningcss@1.32.0)(terser@5.46.1)(tsx@4.21.0)(yaml@2.8.3)) + workbox-window: + specifier: ^7.3.0 + version: 7.4.0 apps/manavoxel: devDependencies: