Skip to content

Fix the CodeSandbox setup failure in the examples - #3595

Merged
tanem merged 1 commit into
masterfrom
codesandbox-pnpm-setup
Jul 30, 2026
Merged

Fix the CodeSandbox setup failure in the examples#3595
tanem merged 1 commit into
masterfrom
codesandbox-pnpm-setup

Conversation

@tanem

@tanem tanem commented Jul 30, 2026

Copy link
Copy Markdown
Owner

Every example ran npm i -g pnpm@latest as a CodeSandbox setup task before installing. That now resolves to pnpm 11, which requires Node 22.13 and loads node:sqlite. The ghcr.io/codesandbox/devcontainers/typescript-node:latest image still ships Node 20.12, so the task threw ERR_UNKNOWN_BUILTIN_MODULE: No such built-in module: node:sqlite and setup died before pnpm install ran.

The upstream react-vite and nextjs templates no longer have the task and use the pnpm preinstalled in the image. This removes it from all 17 examples to match.

Pinning to pnpm@10 would also unblock it, but it diverges from the templates and breaks again once CodeSandbox moves the image to Node 22.

🤖 Generated with Claude Code

The task ran `npm i -g pnpm@latest`, which now resolves to pnpm 11.
That requires Node 22.13 and loads `node:sqlite`, but the
`typescript-node:latest` devcontainer image still ships Node 20.12, so
setup crashed before `pnpm install` ran.

The react-vite and nextjs sandbox templates dropped the task and use the
pnpm preinstalled in the image, so match them.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@tanem tanem added the internal label Jul 30, 2026
@tanem
tanem merged commit 53e365b into master Jul 30, 2026
2 checks passed
@tanem
tanem deleted the codesandbox-pnpm-setup branch July 31, 2026 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant