lobehub / lobe-chat

🤯 Lobe Chat - an open-source, modern-design AI chat framework. Supports Multi AI Providers( OpenAI / Claude 3 / Gemini / Ollama / Azure / DeepSeek), Knowledge Base (file upload / knowledge management / RAG ), Multi-Modals (Vision/TTS) and plugin system. One-click FREE deployment of your private ChatGPT/ Claude application.
https://chat-preview.lobehub.com
Other
40.66k stars 9.26k forks source link

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

Closed katorly closed 6 months ago

katorly commented 6 months ago

💻 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

lobehubbot commented 6 months ago

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

6Morpheus6 commented 6 months 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

fuyang0811 commented 6 months ago

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

lobehubbot commented 6 months ago

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


Same problem, same error.

Abigorangee commented 6 months ago

I also encountered the same problem yesterday. image

lobehubbot commented 6 months ago

✅ @katorly

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

arvinxx commented 6 months ago

fixed, please try again~

lobehubbot commented 6 months ago

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

The release is available on:

Your semantic-release bot :package::rocket: