N
Nuxt4mo ago
Patricius

Nuxt2 uses outdated TypeScript version

I am working to migrate a mono-repo. 1.) My root has a package.json and tsconfig that uses TypeScript 5.5.4 (latest version). 2.) I have a packages directory with directories that host small TS based packages. They all build with TS 5.5.4, types and only modules support (no CJS support). These packages are built using unbuild. 3.) I have a app directory, it has its own package.json and tsconfig, thats where my Nuxt2 app is located. 4.) On build and run my Nuxt2 app throws errors which I can only link to an outdated TypeScript version. <4.5 to be precise. This is the error:
ERROR ERROR in ../packages/core/src/useAction.ts:18:9 2:38:26 PM
TS2304: Cannot find name 'Awaited'.
16 | > = Fn extends (...args: any[]) => infer P
17 | ?
> 18 | | Awaited<P>
| ^^^^^^^
19 | | (Disabled extends true ? (Throw extends true ? never : null) : never)
20 | : never
ERROR ERROR in ../packages/core/src/useAction.ts:18:9 2:38:26 PM
TS2304: Cannot find name 'Awaited'.
16 | > = Fn extends (...args: any[]) => infer P
17 | ?
> 18 | | Awaited<P>
| ^^^^^^^
19 | | (Disabled extends true ? (Throw extends true ? never : null) : never)
20 | : never
What I already tried - Forcing 5.5.4 TS version in app directory through resolutions. This produces countless of other errors and does not fix this either.
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server