VChart icon indicating copy to clipboard operation
VChart copied to clipboard

[Bug] cannot render chart on nextjs using turbopack

Open da730 opened this issue 3 months ago • 0 comments

Version

2.0.5

Link to Minimal Reproduction

null

Steps to Reproduce

  1. create a nextjs app using turbopack
  2. import vchart and call renderAsync

Current Behavior

react-vchart和vchart均会报同样的错误: Image 换用webpack打包可以解决,但是webpack太慢了,且nextjs官方默认是turbopack打包 之前在VTable也有类似的问题:https://github.com/VisActor/VRender/issues/1827 有人提供过nextjs vchart template:https://github.com/mengxi-ream/visactor-next-template?tab=readme-ov-file

但是换用turbopack打包也有相同的问题:

Image Image

Expected Behavior

正常渲染图表

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

da730 avatar Sep 22 '25 06:09 da730