Skip to content
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

Ctor is not a constructor #811

Open
mdkjs opened this issue Mar 31, 2020 · 13 comments
Open

Ctor is not a constructor #811

mdkjs opened this issue Mar 31, 2020 · 13 comments

Comments

@mdkjs
Copy link

mdkjs commented Mar 31, 2020

使用图表点击时报错了Uncaught (in promise) TypeError: Ctor is not a constructor

@mdkjs
Copy link
Author

mdkjs commented Mar 31, 2020

我是vue-cli 4 搭建的工程

@Talbot3
Copy link

Talbot3 commented Apr 13, 2020

我也遇到了相同的错误,只要引入交互的库,就报错

@Talbot3
Copy link

Talbot3 commented Apr 13, 2020

而使用React 高阶组件的方式,能避免这个问题

@jiahui336
Copy link

解决了吗

@zengyue
Copy link
Member

zengyue commented Aug 18, 2020

可以引用 index-all, 或者引进来再注册下 Chart.registerInteraction('pie-select', PieSelect);

@Rabbitzzc
Copy link

引入F2改成引用index-all就可以了

import F2 from '@antv/f2/lib/index-all'
import '@antv/f2/lib/interaction/pie-select'

@JoeshuTT
Copy link

醉了,官方的示例,凡是引入交互的库都是也报这个错

@zengyue
Copy link
Member

zengyue commented Oct 12, 2020

醉了,官方的示例,凡是引入交互的库都是也报这个错

怎么引的?引index-all 也有问题?

@MrLiDragon
Copy link

请问在钉钉小程序也出现这种问题了,要怎么引入这个交互的呢

@panzhangguo
Copy link

请问在钉钉小程序也出现这种问题了,要怎么引入这个交互的呢

我也是,有解决办法了吗?

@fgyang
Copy link

fgyang commented May 15, 2021

wx-f2交互的代码应该如何写?有demo么?

@BoleLee
Copy link

BoleLee commented Oct 14, 2021

可以引用 index-all, 或者引进来再注册下 Chart.registerInteraction('pie-select', PieSelect);

3.8.7 版本,使用交互报错,这两个方法都无法解决,请问新版本是应该怎么使用?
3.5.0版本这样使用是OK的:

const F2 = require('@antv/f2/lib/index')
require('@antv/f2/lib/interaction/')

@JohnJiang900526
Copy link

3.8.X的好像都有问题,把版本降到3.7.0才可以使用

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests