New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Type error in NodeJS 20, when lib: ["es2023"] #43
Comments
Hi! Thanks for posting this issue - I've spun up a local project based on your example, but I can't seem to reproduce the type error. Could you link to a repo with a minimal reproduction, please? That should help me to get things investigated for you as soon as possible! |
Hii! here's the link: https://github.com/SooditK/prisma-extension-kysely-typeissue Thanks |
Looks like an ESM vs CJS issue! I'll dig into it and let you know when I've got a solution posted. Thanks again! |
This looks like it's been resolved by the new release! Using your sample repo: npm install prisma-extension-kysely@latest
npm run build
npm run dev It now works without any type errors! Thanks again for bringing this to my attention, much appreciated. |
Describe the bug
I'm using NodeJS 20 and the following
tsconfig.json
for my expressjs application, Prisma Extension Kysely throws Type Error:Type 'typeof import("PATH_TO_MY_PROJECT/node_modules/prisma-extension-kysely/dist/index")' has no call signatures.
To Reproduce
Steps to reproduce the behavior:
npx prisma generate
Expected behavior
No Type Errors 😄
Desktop (please complete the following information):
Additional context
tsconfig.json
:The text was updated successfully, but these errors were encountered: