vite打包后访问页面报错
- 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
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