From 270bbbc47ef0b9a95042feebac3cc1ecb3f44683 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Thu, 18 Feb 2021 11:47:23 +0100 Subject: [PATCH] fix: init nitro before module container (closes #165) --- packages/nuxt3/src/core/nuxt.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/nuxt3/src/core/nuxt.ts b/packages/nuxt3/src/core/nuxt.ts index a8550a1a16..ccab22530f 100644 --- a/packages/nuxt3/src/core/nuxt.ts +++ b/packages/nuxt3/src/core/nuxt.ts @@ -75,12 +75,12 @@ export default class Nuxt extends Hookable { this.addHooks(this.options.hooks) } - // Await for modules - await this.moduleContainer.ready() - // Await for server await initNitro(this) + // Await for modules + await this.moduleContainer.ready() + // Call ready hook await this.callHook('ready', this)