-
Notifications
You must be signed in to change notification settings - Fork 85
Open
Description
Question
when i run the command "npm run compile" ,it has some error like :
- info Collecting page data .deleteTmpSessionChart
- info Collecting page data ...Error [ERR_REQUIRE_ESM]: require() of ES Module E:\IdeaWorkspace\AIGC\db-gpt-web\node_modules@antv\g-lite\node_modules\d3-color\src\index.js from E:\IdeaWorkspace\AIGC\db-gpt-web\node_modules@antv\g-lite\dist\index.js not supported.
Instead change the require of E:\IdeaWorkspace\AIGC\db-gpt-web\node_modules@antv\g-lite\node_modules\d3-color\src\index.js in E:\IdeaWorkspace\AIGC\db-gpt-web\node_modules@antv\g-lite\dist\index.js to a dynamic import() which is available in all CommonJS modules.
at TracingChannel.traceSync (node:diagnostics_channel:315:14)
at Object. (E:\IdeaWorkspace\AIGC\db-gpt-web\node_modules@antv\g-lite\dist\index.js:7:10) {
code: 'ERR_REQUIRE_ESM'
}
Build error occurred
Error: Failed to collect page data for /knowledge/graph
at E:\IdeaWorkspace\AIGC\db-gpt-web\node_modules\next\dist\build\utils.js:1161:15
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
type: 'Error'
NodeJs -> V 22.4.1
Npm -> V10.8.1
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels