-
Notifications
You must be signed in to change notification settings - Fork 358
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
TS : Generate error with 'PATCH' #1711
Comments
Possible that this is a typescript/node issue - Swapping out with -
rather than
Seems to "fix" the issue. |
I've changed this to -
And now it compiles correctly. This is potentially a change in versions? I'm using 🫤 I'm still a little confused why it doesn't like the |
Yeah seems to not recognise the type/interface from children, this test also fails -
|
I tried it with the latest version of encore (1.45.7), checked out the prisma example, and it generated without problems. Have you made any changes to the example code? What is the exact command that you run when you encounter this problem in the example? If you cant reproduce it with the example, could you share some code so that I can try to reproduce it. Specifically the type definitions would be interesting to see |
I'm getting the following error -
This occurs from the example project code (https://github.com/encoredev/examples/blob/main/ts/prisma/users/user.controller.ts#L84) -
All other endpoints in that file generate without an issue.
The text was updated successfully, but these errors were encountered: