diff --git a/packages/nuxt/src/core/schema.ts b/packages/nuxt/src/core/schema.ts index 6e75198ae1..477cc9696c 100644 --- a/packages/nuxt/src/core/schema.ts +++ b/packages/nuxt/src/core/schema.ts @@ -104,7 +104,8 @@ export default defineNuxtModule({ if (filePath && existsSync(filePath)) { let loadedConfig: SchemaDefinition try { - loadedConfig = _resolveSchema(filePath) + // TODO: fix type for second argument of `import` + loadedConfig = await _resolveSchema.import(filePath, {}) as SchemaDefinition } catch (err) { logger.warn( 'Unable to load schema from',