antvis / antvis/F2

vite打包后访问页面报错

Open
#1,977 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
8k
Forks
637
PR merge metrics
No merged PRs in 30d

Description

- [ ] I have searched the [issues](https://github.com/antvis/f2/issues) of this repository and believe that this is not a duplicate.

### Reproduction link
[https://new-issue.antv.vision/无](https://new-issue.antv.vision/无)

### Steps to reproduce
开发环境正常,vite4打包后访问页面报错TypeError: Assignment to constant variable.,将跟该库相关的代码删除再打包访问一切正常

| Environment | Info |
|---|---|
| f2 | 5.5.0 |
| System | - |
| Browser | - |

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the production build with F2 5.5.0 and Vite 4, then inspect the generated error to identify which F2-related code triggers the constant-assignment failure. The issue names no source file or test; done means a Vite production build serves without the reported TypeError.

Written by the indexing model from the issue text.

Assessment

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