Fix the CodeSandbox setup failure in the examples - #3595
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Every example ran
npm i -g pnpm@latestas a CodeSandbox setup task before installing. That now resolves to pnpm 11, which requires Node 22.13 and loadsnode:sqlite. Theghcr.io/codesandbox/devcontainers/typescript-node:latestimage still ships Node 20.12, so the task threwERR_UNKNOWN_BUILTIN_MODULE: No such built-in module: node:sqliteand setup died beforepnpm installran.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@10would also unblock it, but it diverges from the templates and breaks again once CodeSandbox moves the image to Node 22.🤖 Generated with Claude Code