eosphoros-ai / DB-GPT

AI Native Data App Development framework with AWEL(Agentic Workflow Expression Language) and Agents
http://docs.dbgpt.cn
MIT License
13.75k stars 1.86k forks source link

[Bug] [Web Module]Pull the latest web code, no changes, compiles directly, an error occurs. #2045

Open Hec-gitHub opened 1 month ago

Hec-gitHub commented 1 month ago

Search before asking

Operating system information

Linux

Python version information

3.10

DB-GPT version

main

Related scenes

Installation Information

Device information

Device:CPU

Models information

LLM:Proxy LLM

What happened

The following error occurred while compiling a web project using yarn compile : SyntaxError: Unexpected token { in JSON at position 887504 at JSON.parse () at patchIncorrectLockfile (/data/git/DB-GPT/web/node_modules/next/dist/lib/patch-incorrect-lockfile.js:93:33)

./node_modules/@antv/g2/esm/transform/sample.js Attempted import error: 'medianIndex' is not exported from 'd3-array' (imported as 'medianIndex'). This error has already been submitted to Issse under item [antvis/G2].

What you expected to happen

Compilation ended normally.

How to reproduce

  1. Pull the latest web code.
  2. cd web Project Directory
  3. Execute "yarn install"
  4. Execute "yarn compile"

Additional context

No response

Are you willing to submit PR?