From 4ecff793e4cbc08ae705601c6cdcf53b521be3b1 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Wed, 21 Sep 2022 18:49:26 +0530 Subject: [PATCH] chore(gui): build error with dagre package ref: https://stackoverflow.com/a/72198834 Signed-off-by: Pranav C --- packages/nc-gui/nuxt.config.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/nc-gui/nuxt.config.ts b/packages/nc-gui/nuxt.config.ts index 411cf9f26d..642cb2ed0d 100644 --- a/packages/nc-gui/nuxt.config.ts +++ b/packages/nc-gui/nuxt.config.ts @@ -51,9 +51,10 @@ export default defineNuxtConfig({ }, vite: { - // todo: minifiy again build: { - minify: false, + commonjsOptions: { + ignoreTryCatch: false, + }, }, plugins: [ vueI18n({ @@ -82,7 +83,8 @@ export default defineNuxtConfig({ ], define: { 'process.env.DEBUG': 'false', - 'process.nextTick': () => {}, + 'process.nextTick': () => { + }, }, server: { watch: {