typebot.io icon indicating copy to clipboard operation
typebot.io copied to clipboard

fix: force Node.js 22 for Vercel deployment

Open adryserage opened this issue 4 months ago • 4 comments

Summary

  • Add .nvmrc file to force Vercel to use Node.js 22 instead of 24
  • Fixes isolated-vm compilation failure due to C++20 requirement on Node.js 24

Problem

Vercel now defaults to Node.js 24.x, but the isolated-vm package fails to compile because:

  1. No prebuilt binaries exist for Node.js 24
  2. The C++ compiler on Vercel's build environment doesn't support C++20 (required by Node.js 24's V8 headers)

Error: #error "C++20 or later required."

Solution

Add .nvmrc with value 22 to ensure Vercel uses Node.js 22, which has prebuilt binaries for isolated-vm.

Test plan

  • [ ] Verify Vercel deployment succeeds with Node.js 22
  • [ ] Confirm isolated-vm installs without compilation

adryserage avatar Nov 26 '25 09:11 adryserage

@adryserage is attempting to deploy a commit to the Typebot Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Nov 26 '25 09:11 vercel[bot]

[!IMPORTANT]

Review skipped

Auto reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • [ ] Create PR with unit tests
  • [ ] Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

coderabbitai[bot] avatar Nov 26 '25 09:11 coderabbitai[bot]

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
builder-v2 Ready Ready Preview Comment Nov 26, 2025 10:12am

vercel[bot] avatar Nov 26 '25 10:11 vercel[bot]

In theory, having

"engines": {
    "node": "^22"
  },

in package.json should be enough 🤔

Maybe it should be added to apps/builder/package.json as well

baptisteArno avatar Dec 12 '25 09:12 baptisteArno