antvis / antvis/G2Plot

🤔 [QUESTION] Next.js引入g2打包报错

Open
#3,651 1 comment 0 reactions 0 assignees View on GitHub
Question
Dominant language
TypeScript
Stars
2.7k
Forks
591
PR merge metrics
No merged PRs in 30d

Description

### 🐛 Question description [Please make everyone to understand it]
![image](https://github.com/antvis/G2Plot/assets/21117602/e7278edb-517d-4b8d-b638-8f7484e29d26)
在Next.js引入g2后打包报错
### 💻 Link to minimal reproduction

### 🏞 Expected result
希望能正常打包
### 🚑 Any additional [like screenshots]

* **G2Plot Version**:^2.4.31
* **Next.js Version**:12.0.4

Contributor guide

Open the contributing guide

Research direction

Start with the attached error screenshot and reproduce the reported setup using G2Plot 2.4.31 with Next.js 12.0.4. The issue provides no minimal reproduction, error text, files, or tests; it is complete only when that integration builds successfully and the cause and verification steps are documented.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.