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 {