antvis / util

utility library for AntV products.
MIT License
74 stars 28 forks source link

"can not assign to import variable" when with start with vite #109

Closed SharkBaby closed 9 months ago

SharkBaby commented 9 months ago

we find below error from antv/matrix-util like below, and the tempory solution is to remove "module" configuration each time so that to make our local service can start up with vite, please provide help here. thanks.

image

tempory solution like below

image

there is similar issue: https://github.com/antvis/G6/issues/3240#issuecomment-947388127

SharkBaby commented 9 months ago

{ find: '@antv/g6', replacement: 'node_modules/@antv/g6/dist/g6.min.js' }, // 解决引入 roo-chart vite 启动报错的问题 目前引入如下配置可以不用像临时方案那样移除module

image