VChart
VChart copied to clipboard
[Bug] cannot render chart on nextjs using turbopack
Version
2.0.5
Link to Minimal Reproduction
null
Steps to Reproduce
- create a nextjs app using turbopack
- import vchart and call renderAsync
Current Behavior
react-vchart和vchart均会报同样的错误:
换用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打包也有相同的问题:
Expected Behavior
正常渲染图表
Environment
- OS:
- Browser:
- Framework:
Any additional comments?
No response