lobehub/lobe-chat








The issue has been closed
[Bug] Vercel部署因`next-auth.ts`失败 #1441
katorly posted onGitHub
💻 Operating System
Windows
📦 Environment
Vercel / Zeabur / Sealos
🌐 Browser
Edge
🐛 Bug Description
直接fork使用的,并与Upstream同步。多次部署仍出现此错误。 几小时前可以正常部署,但最近的部署都报这个错了。
Failed to compile.
|
| ./src/app/api/auth/next-auth.ts:30:9
| Type error: Type '{}' is not assignable to type 'string'.
|
| 28 \| // Pick userid from token
| 29 \| if (session.user) {
| > 30 \| session.user.id = token.userId ?? session.user.id;
| \| ^
| 31 \| }
| 32 \| return session;
| 33 \| },
| error: script "build" exited with code 1
| Error: Command "bun run build" exited with 1
🚦 Expected Behavior
No response
📷 Recurrence Steps
No response
📝 Additional Information
仅使用了以下环境变量: