New error appeared in logs of new builds in Preview Deployments.
Previous build was fine (no errors) - Rebuild (without cache) and errors appear!
No configuration changes were made.
Same versions as before, compared build output, all same versions.
No issues in local environment.
Error [ERR_REQUIRE_ESM]: require() of ES Module /var/task/node_modules/@stablelib/base64/lib/base64.js from /var/task/node_modules/svix/dist/index.js not supported.
Instead change the require of base64.js in /var/task/node_modules/svix/dist/index.js to a dynamic import() which is available in all CommonJS modules.
at /opt/rust/nodejs.js:1:12050
at Function.Er (/opt/rust/nodejs.js:1:12424)
at e.<computed>.ve._load (/opt/rust/nodejs.js:1:12020)
at Object.<anonymous> (/var/task/node_modules/svix/dist/index.js:22:16) {
code: 'ERR_REQUIRE_ESM'
}
Node.js process exited with exit status: 1. The logs above can help with debugging the issue.
Deployment URL or Custom Domain: dev.getgemba.ai
Environment (local, preview, production): preview
Project Framework: React
Build Settings:
Framework Preset: Vite
Build Command (if not default):
Output Directory (if not default):
Install Command (if not default):
Node/Runtime Version:
Package Manager: Yarn 4.5.0
Relevant Packages:
Thank you.
I mentioned in my post:
This started happening today, without any code or configuration changes.
Even rebuilds of previous deployments that worked, introduce the same errors.
If you look at the error trace, you can see it even comes from a dependency, not my code.
Was there any change in Vercel node runtime?