antvis / antvis/G6

[Bug]: vue3项目打包问题

Open
#7,585 3 comments 0 reactions 0 assignees View on GitHub
bug 🐛
Dominant language
TypeScript
Stars
12.3k
Forks
1.6k
PR merge metrics
No merged PRs in 30d

Description

### Describe the bug / 问题描述

报错截图如下↓
Image

web端采用vue3开发,vite构建。

依赖安装情况截图如下:

Image

### Reproduction link / 复现链接

_No response_

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

解决过程:
按照大模型提醒,做出一下尝试均不行。
1.检查了依赖版本;
2.使用 Vite 插件vite-plugin-commonjs 来处理 CommonJS 格式的模块;
3.安装固定版本dagre@0.8.5;
4.Vite 强制 CommonJS 转换

以上能试的方案都试过,仍然打包失败。

### Version / 版本

🆕 5.x

### OS / 操作系统

- [x] macOS
- [ ] 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

The issue names a Vue 3 web project built with Vite on macOS, but provides no reproduction link, repository files, or readable build-error details beyond screenshots. Start by obtaining the exact error and a minimal project with the reported dependency setup, then isolate the failing Vite build. Done means the project builds successfully and the reproducible cause and fix are documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vite
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.