lobehub/lobe-chat

[Bug] Vercel部署因`next-auth.ts`失败 #1441

katorly posted onGitHub

💻 Operating System

Windows

📦 Environment

Vercel / Zeabur / Sealos

🌐 Browser

Edge

🐛 Bug Description

直接fork使用的,并与Upstream同步。多次部署仍出现此错误。 几小时前可以正常部署,但最近的部署都报这个错了。

image

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

仅使用了以下环境变量:
image


👀 @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。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

posted by lobehubbot about 1 year ago

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

image image

posted by 6Morpheus6 about 1 year ago

一样的问题,一样的报错。

posted by fuyang0811 about 1 year ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Same problem, same error.

posted by lobehubbot about 1 year ago

I also encountered the same problem yesterday. image

posted by Abigorangee about 1 year ago

✅ @katorly

This issue is closed, If you have any questions, you can comment and reply.
此问题已经关闭。如果您有任何问题,可以留言并回复。

posted by lobehubbot about 1 year ago

fixed, please try again~

posted by arvinxx about 1 year ago

:tada: This issue has been resolved in version 0.130.7 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

posted by lobehubbot about 1 year ago

Fund this Issue

$0.00
Funded

Pull requests