From 0c4b442ccb55bb4a780a92ba2f5ed957dbf4a5d6 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Sat, 2 Oct 2021 16:05:26 +0200 Subject: [PATCH] fix(nuxi): fix issue with dynamic cjs chunks resolves #621 via hotfix --- packages/nuxi/src/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/nuxi/src/index.ts b/packages/nuxi/src/index.ts index cc655365ee..8751176fec 100755 --- a/packages/nuxi/src/index.ts +++ b/packages/nuxi/src/index.ts @@ -29,7 +29,8 @@ async function _main () { } try { - const cmd = await commands[command as Command]().then(c => c.default || c) as NuxtCommand + // @ts-ignore default.default is hotfix for #621 + const cmd = await commands[command as Command]().then(c => c.default.default) as NuxtCommand if (args.h || args.help) { showHelp(cmd.meta) } else {