Description
packages/platform-icons declares "main": "./dist/index.js", but nothing in the documented setup builds it. pnpm install doesn't (the package has no prepare script) and neither does pnpm dev:core. On a fresh clone or a fresh worktree, dist/ is simply absent, and the eID wallet — the only consumer — cannot start on any platform.
Vite fails hard:
Failed to resolve entry for package "@metastate-foundation/platform-icons".
The package may have incorrect main/module/exports specified in its package.json.
File: src/lib/ui/PlatformAppCard/PlatformAppCard.svelte:2:31
svelte-check reports the same thing more quietly, as a single type error that is easy to dismiss as unrelated:
Cannot find module '@metastate-foundation/platform-icons' or its corresponding type declarations.
Steps to reproduce
- Clone the repo fresh, or create a new worktree
pnpm install
pnpm dev:core
cd infrastructure/eid-wallet && pnpm tauri dev
- The window opens blank; the terminal shows the Vite error above
Expected behavior
After the setup documented in docs/docs/Post Platform Guide/local-dev-quick-start.md, the wallet runs.
Actual behavior
It cannot start until you happen to find and run:
pnpm --filter @metastate-foundation/platform-icons build
pnpm build at the root also works, because turbo's build task carries dependsOn: ["^build"] — but it builds the whole monorepo, which is not what someone wants when they only need the wallet.
Suggested fix
Add a prepare script to packages/platform-icons/package.json:
pnpm runs prepare for workspace packages on install, so pnpm install becomes sufficient and the local-dev quick start needs no new step. The alternative is to document the build command, but that leaves the same trap for the next person who skips it.
Additional context
Found while setting up a local two-device test for #1146. It cost roughly an hour, largely because the svelte-check symptom reads as an unrelated type error while the real consequence is that the app will not boot.
google-services.json being absent from the repo blocks pnpm tauri android dev on a fresh machine in the same way — worth a separate issue if the team agrees it should ship a dev placeholder.
Description
packages/platform-iconsdeclares"main": "./dist/index.js", but nothing in the documented setup builds it.pnpm installdoesn't (the package has nopreparescript) and neither doespnpm dev:core. On a fresh clone or a fresh worktree,dist/is simply absent, and the eID wallet — the only consumer — cannot start on any platform.Vite fails hard:
svelte-checkreports the same thing more quietly, as a single type error that is easy to dismiss as unrelated:Steps to reproduce
pnpm installpnpm dev:corecd infrastructure/eid-wallet && pnpm tauri devExpected behavior
After the setup documented in
docs/docs/Post Platform Guide/local-dev-quick-start.md, the wallet runs.Actual behavior
It cannot start until you happen to find and run:
pnpm buildat the root also works, because turbo'sbuildtask carriesdependsOn: ["^build"]— but it builds the whole monorepo, which is not what someone wants when they only need the wallet.Suggested fix
Add a
preparescript topackages/platform-icons/package.json:pnpm runs
preparefor workspace packages on install, sopnpm installbecomes sufficient and the local-dev quick start needs no new step. The alternative is to document the build command, but that leaves the same trap for the next person who skips it.Additional context
Found while setting up a local two-device test for #1146. It cost roughly an hour, largely because the
svelte-checksymptom reads as an unrelated type error while the real consequence is that the app will not boot.google-services.jsonbeing absent from the repo blockspnpm tauri android devon a fresh machine in the same way — worth a separate issue if the team agrees it should ship a dev placeholder.