From 0643d4315b4a876853274262104eebfcbe216572 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Fri, 14 Jul 2023 23:39:06 +0100 Subject: [PATCH] fix(cli): allow non-existent `experimental` option --- packages/nuxi/src/utils/prepare.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nuxi/src/utils/prepare.ts b/packages/nuxi/src/utils/prepare.ts index 10bcb42a28..d9592fbde9 100644 --- a/packages/nuxi/src/utils/prepare.ts +++ b/packages/nuxi/src/utils/prepare.ts @@ -17,7 +17,7 @@ export const writeTypes = async (nuxt: Nuxt) => { jsx: 'preserve', target: 'ESNext', module: 'ESNext', - moduleResolution: nuxt.options.experimental.typescriptBundlerResolution ? 'Bundler' : 'Node', + moduleResolution: nuxt.options.experimental?.typescriptBundlerResolution ? 'Bundler' : 'Node', skipLibCheck: true, strict: nuxt.options.typescript?.strict ?? true, allowJs: true,