stack/apps
Devin AI 5edfb27ff8 fix: remove "type": "module" from backend package.json to fix Vercel ESM error
Next.js 16.2 has a known regression (vercel/next.js#91661) where the
.next/package.json CJS boundary marker is not included in the Vercel
serverless function bundle. This causes Node.js to walk up to the
project's package.json, see "type": "module", and treat the compiled
server bundles as ESM — breaking the require() calls in the generated
route files.

The fix (vercel/next.js#93612) is only in canary (16.3.0-canary.17+),
not yet in a stable release. Removing "type": "module" is safe here
because:
- All backend source is TypeScript (no .js files)
- next.config is .mjs (explicit ESM)
- .eslintrc is .cjs (explicit CJS)
- Scripts use tsx (handles ESM regardless)
- TypeScript's moduleResolution: bundler is independent of this field

Co-Authored-By: Konstantin Wohlwend <n2d4xc@gmail.com>
2026-05-20 18:46:54 +00:00
..
backend fix: remove "type": "module" from backend package.json to fix Vercel ESM error 2026-05-20 18:46:54 +00:00
dashboard Show enabled alpha apps in sidebar and app store (#1449) 2026-05-20 11:07:49 -07:00
dev-launchpad chore: update package versions 2026-05-19 16:22:10 -07:00
e2e Fix flaky tests and preexisting CI failures (#1443) 2026-05-20 10:00:11 -07:00
hosted-components chore: update package versions 2026-05-19 16:22:10 -07:00
internal-tool Upgrade Next.js 2026-05-19 19:01:00 -07:00
mcp Upgrade Next.js 2026-05-19 19:01:00 -07:00
mock-oauth-server chore: update package versions 2026-05-19 16:22:10 -07:00
oauth-mock-server In-source unit tests (#429) 2025-02-14 11:47:52 -08:00
skills Upgrade Next.js 2026-05-19 19:01:00 -07:00