Patricius
Patricius
Explore posts from servers
NNuxt
Created by Patricius on 8/8/2024 in #❓・help
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.
1 replies
NNuxt
Created by Patricius on 6/13/2024 in #❓・help
Dockerized Nuxt3 with Bun Cannot find module "@vue/reactivity"
No description
18 replies
NNuxt
Created by Patricius on 6/12/2024 in #❓・help
Dockerized Nuxt3 Cannot find module "@vue/reactivity"
I am getting an error 500 on load. I checked my container files and the module exists under node_modules. This is my Dockerfile:
FROM oven/bun

WORKDIR /app

COPY package.json bun.lockb* ./

RUN bun install

COPY . .

RUN bun run build

EXPOSE 3000

CMD ["bun", "run", "dev"]
FROM oven/bun

WORKDIR /app

COPY package.json bun.lockb* ./

RUN bun install

COPY . .

RUN bun run build

EXPOSE 3000

CMD ["bun", "run", "dev"]
9 replies