Closed vanduc1102 closed 9 months ago
Disable minification, especially class name related.
Hi @MichalLytek , thank you for replying,
Do you mean that, the issue is because I am using NextJS, when the build happens, it will minify name of classes ?
Do you have any guides or documents for doing that with NextJS@13
?
Thanks.
Describe the Bug I am using
typed-graphql
in anextjs13
project , the project work well in development mode, but production mode cannot work correctly,Here are some logs :
Looks like to me that a random name with 1 character is generated for InputType without name,
To Reproduce
I have an example here, https://github.com/vanduc1102/nextjs13-prisma-typedgraphql/pull/1/files
the sample work well in dev mode,
but in production mode, you will receive error when click on button
Click me to test mutation
The error is different , but it can be fix if I give a name for
CustomizedType3Input
@InputType("CustomizedType3Input")
Expected Behavior
Is there a way to have warning , or set the name of InputType mandatory.
Logs If applicable, add some console logs to help explain your problem. You can paste the errors with stack trace that were printed when the error occurred.
Environment (please complete the following information):
Additional Context Add any other context about the problem here.