-
-
Notifications
You must be signed in to change notification settings - Fork 85
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
Prisma.JsonValue
occurs Maximum call stack size exceeded
#346
Comments
Maximum call stack size exceeded
Prisma.JsonValue
occurs Maximum call stack size exceeded
export type JsonObject = {[Key in string]?: JsonValue}
/**
* From https://github.com/sindresorhus/type-fest/
* Matches a JSON array.
*/
export interface JsonArray extends Array<JsonValue> {}
/**
* From https://github.com/sindresorhus/type-fest/
* Matches any valid JSON value.
*/
export type JsonValue = string | number | boolean | JsonObject | JsonArray | null Here is the Prisma.JsonValue type. |
Just ran into this today |
@dohyuu Due to What about just using |
@DavidVaness This issue needs entire refactoring in |
@samchon I solved the problem with a prisma interface generator that was customized for me. ( Thank you for your answer. |
Building and publishing next version of After a day, upgrade to |
Thank you @samchon |
To support #346 issue, `typia` has been entirely reconstructed, and break changes on API being occured. Therefore, upgraded minor version of `nestia`, and configured `peerDependencies` to have minimum `typia@4.0.0` version
@samchon I have updated to the latest typia + nestia and the issue persists. Only way is to remap the Prisma.JsonValue to any or some other type. Seems like its not fixed |
@DavidVaness Tested your code, but there's not any problem. Which version are you using? If same error being repeated, can you provide me a reproducable repo? |
Bug Report
Summary
When there is a
Prisma.JsonValue
type in theUser
model of Prisma, an error occurs.Actual behavior: error occurred
If I comment out
callStackExceeded
, no error occurs.Code occuring the bug
repo: https://github.com/dohyuu/nestia-reproduce
git clone https://github.com/dohyuu/nestia-reproduce cd ./nestia-reproduce npm i npm run db:gen npm run start:dev
The text was updated successfully, but these errors were encountered: