tsedio / tsed

:triangular_ruler: Ts.ED is a Node.js and TypeScript framework on top of Express to write your application with TypeScript (or ES6). It provides a lot of decorators and guideline to make your code more readable and less error-prone. ⭐️ Star to support our work!
https://tsed.io/
MIT License
2.86k stars 284 forks source link

[BUG] Module '"@tsed/prisma"' has no exported member #2867

Closed zinootje closed 1 week ago

zinootje commented 1 month ago

Describe the bug

The most recent version of @tsed/prisma doesn't work with typescript anymore when importing generated models from'@tsed/prisma'.

the file \node_modules\@tsed\prisma\lib\types\index.d.ts cointains the following

export * from "../.schema.js";

when manually changing to export * from "../.schema"; (removing the file extenions) everything works as expected

To Reproduce

  1. clone the prisma example repo (https://github.com/tsedio/tsed-example-prisma)
  2. update packages to most recent version
  3. try to build

Expected behavior

import works as before (last tested version that works 7.36.5à

Code snippets

No response

Repository URL example

https://github.com/tsedio/tsed-example-prisma

OS

Windows Os

Node version

v20.18.0

Library version

v7.83.4

Additional context

No response

Romakita commented 1 week ago

fixed :)

github-actions[bot] commented 1 week ago

🎉 Are you happy?

If you appreciated the support, know that it is free and is carried out on personal time ;)

A support, even a little bit makes a difference for me and continues to bring you answers!

github opencollective