From f86b1b80da60b590ee305d8de182f61a5e882503 Mon Sep 17 00:00:00 2001 From: Jack Zhuang <277994282+os-zhuang@users.noreply.github.com> Date: Tue, 21 Jul 2026 23:58:29 +0800 Subject: [PATCH] fix(stackblitz): bootstrap pnpm 10 in WebContainer start command StackBlitz WebContainers ship a pinned pnpm 8.15.6, which fails the repo's `engines.pnpm >=10.0.0` gate under `engine-strict=true` and cannot read the lockfileVersion 9.0 pnpm-lock.yaml. The "Open in StackBlitz" flow therefore died on `pnpm install` with ERR_PNPM_UNSUPPORTED_ENGINE. Prepend `npm i -g pnpm@10.33.0` (matching the `packageManager` field) to the startCommand so the WebContainer installs a compatible pnpm before install/dev. Keeps engine-strict and the Node 22 / pnpm 10 requirements intact for real dev + CI. Config-only; does not affect the publishable dist/objectstack.json. Co-Authored-By: Claude Opus 4.8 --- .stackblitzrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stackblitzrc b/.stackblitzrc index 1b29862b..9376ea4f 100644 --- a/.stackblitzrc +++ b/.stackblitzrc @@ -1,6 +1,6 @@ { "installDependencies": false, - "startCommand": "pnpm install && pnpm dev", + "startCommand": "npm i -g pnpm@10.33.0 && pnpm install && pnpm dev", "env": { "OS_DATABASE_URL": ".objectstack/data/hotcrm.wasm.db", "OS_DATABASE_DRIVER": "sqlite-wasm"