-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] Error: init chart fail #3755
Comments
检查一下 VChart 引入方式 // 默认的引入方式,可以直接使用,图表无需注册
import VChart from '@visactor/vchart';
// 引入VChart 核心模块,图表需要手动注册
import { VChart } from '@visactor/vchart'; ps. 按需加载文档 |
我报错时使用的是第一种方式,修改成第二种方式后,能够正常。 但第一种使用方式报错应该依然是一个问题。 |
@tangzijun 默认引入会报错的话是不太合理。请提供一个可以复现的 demo 吧 |
+1, 最新版本我们也遇到了一样的问题,默认引入方式会报错“init fail”,必须通过第二种方式手动引入 |
@LiuN1an 请提供一下版本号信息、以及如何图表的使用方式,最好有复现 demo 好定位。 |
@MingSeng-W 你这个是因为之前用的按需方式引入的,本地开发环境 treeshaking 没生效; |
Version
1.13.5
Link to Minimal Reproduction
1
Steps to Reproduce
1
Current Behavior
"next": "^15.1.7"
"react": "^19.0.0"
Expected Behavior
不报错
Environment
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: