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

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

Open
grapewheel opened this issue Feb 24, 2022 · 2 comments
Open

Comments

@grapewheel
Copy link

data-set: 0.11.8
vite: 2.8.4
react: 16.14.0

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

@biaov
Copy link

biaov commented Mar 11, 2022

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

build: {
  commonjsOptions:{
    ignoreTryCatch: false
  }
}

@owendswang
Copy link

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

build: {
  commonjsOptions:{
    ignoreTryCatch: false
  }
}

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

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

3 participants