lobe-chat
lobe-chat copied to clipboard
[Bug] Vercel部署因`next-auth.ts`失败
💻 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
仅使用了以下环境变量:
👀 @katorly
Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible.
Please make sure you have given us as much context as possible.
非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。
Authentication fails for me as well and for other Pinokio users. Operating System: Win 10 GPU: RTX 4070 Ti RAM: 32GB Platform: Pinokio Browser: Opera
一样的问题,一样的报错。
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
Same problem, same error.
I also encountered the same problem yesterday.
✅ @katorly
This issue is closed, If you have any questions, you can comment and reply.
此问题已经关闭。如果您有任何问题,可以留言并回复。
fixed, please try again~
:tada: This issue has been resolved in version 0.130.7 :tada:
The release is available on:
Your semantic-release bot :package::rocket: