vite.config.ts defineConfig 报错,git clone & pnpm i 后没有更改任何代码,defineConfig 报错
No overload matches this call.
The last overload gave the following error.
Argument of type '() => Promise<unknown>' is not assignable to parameter of type 'UserConfigExport'.
Type '() => Promise<unknown>' is not assignable to type 'UserConfigFnObject'.
Type 'Promise<unknown>' has no properties in common with type 'UserConfig'.ts(2769)
index.d.ts(3154, 18): The last overload is declared here.
1、描述
vite.config.ts defineConfig 报错,git clone & pnpm i 后没有更改任何代码,defineConfig 报错
2、截图