Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] unhandledRejection: ReferenceError: Cannot access 'm' before initialization #5386

Open
Jiaheliu137 opened this issue Jan 10, 2025 · 8 comments
Labels
🐛 Bug Something isn't working | 缺陷

Comments

@Jiaheliu137
Copy link

📦 Environment

Docker

📌 Version

1.45.5

💻 Operating System

Ubuntu

🌐 Browser

Chrome

🐛 Bug Description

docker部署的,初始部署完毕,查看日志的时候,显示如下错误:
ReferenceError: Cannot access 'm' before initialization
at Object.y (.next/server/chunks/39817.js:257:19183)
at (.next/server/chunks/39817.js:257:23459)
at (.next/server/chunks/86177.js:159:1345)
at o (.next/server/chunks/86177.js:159:1740)
at s (.next/server/chunks/86177.js:159:1766)
at d (.next/server/chunks/86177.js:159:1943)
at (.next/server/chunks/39817.js:257:23405)
at t.a (.next/server/webpack-runtime.js:1:989)
at 955225 (.next/server/chunks/39817.js:257:23158)
at t (.next/server/webpack-runtime.js:1:143)
⨯ unhandledRejection: ReferenceError: Cannot access 'm' before initialization
at Object.y (.next/server/chunks/39817.js:257:19183)
at (.next/server/chunks/39817.js:257:23459)
at (.next/server/chunks/86177.js:159:1345)
at o (.next/server/chunks/86177.js:159:1740)
at s (.next/server/chunks/86177.js:159:1766)
at d (.next/server/chunks/86177.js:159:1943)
at (.next/server/chunks/39817.js:257:23405)
at t.a (.next/server/webpack-runtime.js:1:989)
at 955225 (.next/server/chunks/39817.js:257:23158)
at t (.next/server/webpack-runtime.js:1:143)
{

📷 Recurrence Steps

docker部署初始部署完毕,查看日志的时候就会显示上面的代码

🚦 Expected Behavior

No response

📝 Additional Information

No response

@Jiaheliu137 Jiaheliu137 added the 🐛 Bug Something isn't working | 缺陷 label Jan 10, 2025
@github-project-automation github-project-automation bot moved this to Roadmap - Chat 1.x in Lobe Chat Routine Jan 10, 2025
@lobehubbot
Copy link
Member

👀 @Jiaheliu137

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

Copy link

dosubot bot commented Jan 10, 2025

@Jiaheliu137 你好!我是Dosu,我是一个可以帮助您解决 bug、回答问题,并成为贡献者的机器人。我会在等待人类维护者的过程中为您提供帮助。

A similar issue has been reported in the repository, where the error "ReferenceError: Cannot access 'm' before initialization" occurs. This error typically indicates that a variable is being used before it has been properly initialized. Here are some steps you can take to address this issue:

  1. Check Variable Declarations: Review the code in the .next/server/chunks/39817.js file, particularly around the line mentioned in the error (line 257). Ensure that all variables are declared and initialized before they are used.

  2. Review Recent Changes: Since this error is occurring in version v1.45.5, examine any recent changes made in this version. Look for modifications related to variable declarations or initializations that might have introduced this issue.

  3. Debugging: Use debugging tools or add console logs to trace the execution flow and identify where the variable is being accessed before initialization.

This issue is similar to one reported in a previous version (v1.45.4) [1].

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other

@Jiaheliu137
Copy link
Author

补充一下,是lobechat database的服务器版本,docker部署

@lobehubbot
Copy link
Member

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


To add, it is the server version of lobechat database, docker deployment

@arvinxx
Copy link
Contributor

arvinxx commented Jan 10, 2025

@Jiaheliu137 问一下,这个抛错目前影响使用吗

@lobehubbot
Copy link
Member

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


@Jiaheliu137 I would like to ask, does this error currently affect the use?

@Jiaheliu137
Copy link
Author

@Jiaheliu137 问一下,这个抛错目前影响使用吗

正常对话可以;但是无法建立个人知识库,和正常的非数据库版本功能一样

@lobehubbot
Copy link
Member

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


@Jiaheliu137 asked, does this error currently affect the use?

Normal conversations are possible; however, personal knowledge base cannot be established, which is the same as the normal non-database version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Something isn't working | 缺陷
Projects
Status: Roadmap - Chat 1.x
Development

No branches or pull requests

3 participants