AVA icon indicating copy to clipboard operation
AVA copied to clipboard

vue项目中引入@antv/chart-advisor会报错的问题

Open chengjie121 opened this issue 3 years ago • 2 comments

  • Package Name:
  • Package Version:
  • Platform:
  • Mini Showcase(like screenshots):
  • CodePen Link:

大家有遇到过引入@antv/chart-advisor 会报错的问题吗

想使用@antv/chart-advisor推荐图表的功能 在新建的vue项目 安装过@antv/chart-advisor 之后 引入 import { autoChart, dataToDataProps, dataPropsToAdvices, adviceToLibConfig } from '@antv/chart-advisor'; 后就报错了

image

项目中的package.json 配置如下 image

chengjie121 avatar May 02 '21 02:05 chengjie121

麻烦贴一下相关代码,还是只import不使用就会报错?

Esorakouki avatar May 06 '21 03:05 Esorakouki

image 是的 npm install @antv/chart-advisor 之后 只要在页面里import chart-advisor 相关的 就会报错

chengjie121 avatar May 06 '21 05:05 chengjie121

官方都说了,是给react用的。

Fucntion avatar Dec 07 '22 04:12 Fucntion

chart-advisor 并不局限于框架哈~

BBSQQ avatar Dec 07 '22 06:12 BBSQQ