antvis / data-set

state driven all in one data process for data visualization.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Vite build后生产版本,运行时出现dagre库引用无效文件

grapewheel opened this issue · comments

data-set: 0.11.8
vite: 2.8.4
react: 16.14.0

通过sourcemap定位到dagre库中某个js引用了无效文件,导致定义的变量undefined出错

commented

可以尝试在 vite.config.js 里添加 ignoreTryCatch

build: {
  commonjsOptions:{
    ignoreTryCatch: false
  }
}

可以尝试在 vite.config.js 里添加 ignoreTryCatch

build: {
  commonjsOptions:{
    ignoreTryCatch: false
  }
}

我用的ice.js 2.x框架,这个配置方法并不行啊……