Skip to content
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

RangeError: Maximum call stack size exceeded #149

Closed
kachar opened this issue Nov 30, 2022 · 3 comments
Closed

RangeError: Maximum call stack size exceeded #149

kachar opened this issue Nov 30, 2022 · 3 comments

Comments

@kachar
Copy link

kachar commented Nov 30, 2022

The generator succeeds in the generation but crashes at runtime when using "prisma": "4.7.0" and "@prisma/client": "4.7.0"

[7:56:30 AM] File change detected. Starting incremental compilation...

/app/cells/graph-api/node_modules/typescript/lib/typescript.js:115822
throw e;
^

RangeError: Maximum call stack size exceeded
at resolveEntityName (/app/cells/graph-api/node_modules/typescript/lib/typescript.js:50057:35)
at resolveTypeReferenceName (/app/cells/graph-api/node_modules/typescript/lib/typescript.js:59348:26)
at getTypeFromTypeReference (/app/cells/graph-api/node_modules/typescript/lib/typescript.js:59530:30)
at getTypeFromTypeNodeWorker (/app/cells/graph-api/node_modules/typescript/lib/typescript.js:62041:28)
at getTypeFromTypeNode (/app/cells/graph-api/node_modules/typescript/lib/typescript.js:62001:49)
at Object.map (/app/cells/graph-api/node_modules/typescript/lib/typescript.js:638:29)
at getTypeFromUnionTypeNode (/app/cells/graph-api/node_modules/typescript/lib/typescript.js:60353:54)
at getTypeFromTypeNodeWorker (/app/cells/graph-api/node_modules/typescript/lib/typescript.js:62054:28)
at getTypeFromTypeNode (/app/cells/graph-api/node_modules/typescript/lib/typescript.js:62001:49)
at tryGetTypeFromEffectiveTypeNode (/app/cells/graph-api/node_modules/typescript/lib/typescript.js:55456:24)

Node.js v19.2.0
Exception has occurred: RangeError: Maximum call stack size exceeded
  at getResolvedMembersOrExportsOfSymbol (/app/cells/graph-api/node_modules/typescript/lib/typescript.js:59024:53)
    at getMembersOfSymbol (/app/cells/graph-api/node_modules/typescript/lib/typescript.js:59079:19)
    at isEmptyAnonymousObjectType (/app/cells/graph-api/node_modules/typescript/lib/typescript.js:65891:90)
    at Object.some (/app/cells/graph-api/node_modules/typescript/lib/typescript.js:748:25)
    at getNormalizedUnionOrIntersectionType (/app/cells/graph-api/node_modules/typescript/lib/typescript.js:66056:73)
    at getNormalizedType (/app/cells/graph-api/node_modules/typescript/lib/typescript.js:66042:84)
    at isRelatedTo (/app/cells/graph-api/node_modules/typescript/lib/typescript.js:66404:30)
    at isPropertySymbolTypeRelated (/app/cells/graph-api/node_modules/typescript/lib/typescript.js:67746:24)
    at propertyRelatedTo (/app/cells/graph-api/node_modules/typescript/lib/typescript.js:67789:31)
    at propertiesRelatedTo (/app/cells/graph-api/node_modules/typescript/lib/typescript.js:67990:43)
tree @generated

....

30 directories, 2784 files

The app works ok with prisma v4.6.1

@kachar
Copy link
Author

kachar commented Dec 2, 2022

Looks like it is a problem with prisma v4.7.0 and v4.7.1

Closing this issue in favor of prisma/prisma#16600

@kachar kachar closed this as completed Dec 2, 2022
@tavindev
Copy link

tavindev commented Dec 3, 2022

Same here with v4.7.1. Reverting to v4.6.1 solved the issue for me as well.

@kachar
Copy link
Author

kachar commented Dec 4, 2022

When I turned off clientExtensions feature the compilation was successful. Downgrading also works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants