diff --git a/packages/nuxi/src/utils/prepare.ts b/packages/nuxi/src/utils/prepare.ts index 9c84576e66..f07ef1b748 100644 --- a/packages/nuxi/src/utils/prepare.ts +++ b/packages/nuxi/src/utils/prepare.ts @@ -17,6 +17,7 @@ export const writeTypes = async (nuxt: Nuxt) => { allowJs: true, noEmit: true, resolveJsonModule: true, + allowSyntheticDefaultImports: true, types: ['node'], baseUrl: relative(nuxt.options.buildDir, nuxt.options.rootDir), paths: {}