Does the Package Support older versions of nestJs #98
-
|
I installed the package in a NestJS v8 app, but it's having some problems running the app. Initially, it provided a zod library issue in node modules, and after updating the typescript version to v5, it had issues identifying path aliases used in the NestJS app I'm currently using Node 24.7.0, NestJs 8.0.0 on project, and better-auth 1.4.12 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
nestjs v8 with typescript v5 is a rough combo - thats a pretty big jump. the path alias issues are probably because ts5 handles module resolution differently. few things to check:
for ts-node add tsconfig-paths: then in nest-cli.json or package.json scripts:
honestly the cleanest path forward is upgrading nest to v9 or v10 if possible - they have proper ts5 support. v8 is pretty old now and mixing old framework with new ts versions always causes pain. |
Beta Was this translation helpful? Give feedback.
nestjs v8 with typescript v5 is a rough combo - thats a pretty big jump. the path alias issues are probably because ts5 handles module resolution differently.
few things to check:
for ts-node add tsconfig-paths:
npm install tsconfig-paths
then in nest-cli.json or package.json scripts:
ts-node -r tsconfig-paths/register src/main.ts
nestjs 8 was designed for ts4.x. jumping to ts5 might cause decorator metadata issues. check if emitDecoratorM…