antvis / antvis/G6

[Bug]: vite build error

Open
#6,646 3 comments 0 reactions 0 assignees View on GitHub
todo :spiral_notepad: waiting for maintainer
Dominant language
TypeScript
Stars
12.3k
Forks
1.6k
PR merge metrics
No merged PRs in 30d

Description

### Describe the bug / 问题描述

x Build failed in 26.50s
error during build:
[commonjs--resolver] node_modules/@antv/layout/lib/dagre.js (3:16): "graphlib" is not exported by "node_modules/dagre/index.js", imported by "node_modules/@antv/layout/lib/dagre.js".

### Reproduction link / 复现链接

_No response_

### Steps to Reproduce the Bug or Issue / 重现步骤

_No response_

### G6 Version / G6 版本

🆕 5.x

### OS / 操作系统

- [ ] macOS
- [X] Windows
- [ ] Linux
- [ ] Others / 其他

### Browser / 浏览器

- [X] Chrome
- [ ] Edge
- [ ] Firefox
- [ ] Safari (Limited support / 有限支持)
- [ ] IE (Nonsupport / 不支持)
- [ ] Others / 其他

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the Windows Vite build for G6 5.x and inspect the reported import in node_modules/@antv/layout/lib/dagre.js alongside node_modules/dagre/index.js. There is no reproduction link, reproduction step, or test named; done means the build no longer reports that graphlib is not exported.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vite
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.