lobe-chat icon indicating copy to clipboard operation
lobe-chat copied to clipboard

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

Open katorly opened this issue 11 months ago • 1 comments

💻 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 avatar Mar 02 '24 16:03 katorly

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

lobehubbot avatar Mar 02 '24 16:03 lobehubbot

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

6Morpheus6 avatar Mar 03 '24 01:03 6Morpheus6

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

fuyang0811 avatar Mar 03 '24 02:03 fuyang0811

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


Same problem, same error.

lobehubbot avatar Mar 03 '24 02:03 lobehubbot

I also encountered the same problem yesterday. image

Abigorangee avatar Mar 03 '24 02:03 Abigorangee

✅ @katorly

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

lobehubbot avatar Mar 03 '24 03:03 lobehubbot

fixed, please try again~

arvinxx avatar Mar 03 '24 03:03 arvinxx

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

The release is available on:

Your semantic-release bot :package::rocket:

lobehubbot avatar Mar 03 '24 04:03 lobehubbot