build: add workbox-window as explicit devDependency #62
No reviewers
Labels
No labels
app:activities
app:chat
app:events
app:forum
app:libra
app:market
app:restaurant
app:tasks
app:wallet
app:webapp
bug
enhancement
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
aiolabs/webapp!62
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/add-workbox-window-dep"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Add
workbox-window: ^7.3.0todevDependencies.Why
Under pnpm's strict hoisting (introduced in #61), Rollup can't resolve
import 'workbox-window'fromvite-plugin-pwa'svirtual:pwa-registermodule, becauseworkbox-windowonly lives innode_modules/.pnpm/vite-plugin-pwa@*/node_modules/— not at the top level where Rollup looks. npm's flat hoisting masked this previously.Discovered while deploying
aio-demofromserver-deploy(NixOSfetchPnpmDeps+pnpmConfigHook). Build failed at the Rollup stage on every standalone (restaurant-app,chat-app, ...) with:Standard upstream fix per
vite-plugin-pwapnpm guidance.Test plan
pnpm installresolvesworkbox-window@7.4.1(already present as a transitive — explicit pin just hoists it)pnpm run dev:allstill boots all 9 vite serversserver-deploysucceeds end-to-end (will verify after merge +nix flake update webapp-demo)