You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tiefan
changed the title
[Bug] [web] can not excute dynamic import in chat page in my compiled web
[Bug] [web] Dynamic imports cannot be executed on the chat page in my compiled web project
Oct 24, 2024
Search before asking
Operating system information
Linux
Python version information
DB-GPT version
main
Related scenes
Installation Information
Installation From Source
Docker Installation
Docker Compose Installation
Cluster Installation
AutoDL Image
Other
Device information
Personal Computer
Deepin 20.9
Models information
Nothing todo with models.
What happened
I just downloaded 0.6.1 release.
I run:
cnpm install
cnmp run compile
cp -rf out/* ../dbgpt/app/static/web
I found that the chat page can not display correctly. The chat history messages did not show on the page.
Then I did some debug work. I modified the following code(in web/new-components/chat/ChatContentContainer.tsx):
into:
Then the page looks as follows:
It seems that there's something wrong with the dynamic import. What should I do?
What you expected to happen
dymaic import @/new-components/chat/content/ChatCompletion
How to reproduce
downloaded 0.6.1 release.
cnpm install
cnmp run compile
cp -rf out/* ../dbgpt/app/static/web
Additional context
I found that if I use 'yarn' instead of 'cnpm', everything works fine.
Are you willing to submit PR?
The text was updated successfully, but these errors were encountered: