“export ‘default‘ (imported as ‘G2‘) was not found in ‘@antv/g2

antv G2的警告

import G2 from '@antv/g2';

改成

import * as G2 from '@antv/g2'

猜你喜欢

转载自blog.csdn.net/weixin_42821697/article/details/122586141
今日推荐