-
Notifications
You must be signed in to change notification settings - Fork 330
RangeError: Maximum call stack size exceeded #246
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
Comments
Hmm, maybe it's because Sequelize has a lot of dependencies. Or it could be a bug in this tool. |
I am also seeing this error:
My project unfortunately isn't open sourced so I can't share the code here. It uses a fair number of node modules but not Sequelize |
@awinograd, you might be able to increase the stack size to fix this. |
running I'm trying to debug / understand the code. Hopefully I can figure out something interesting. If there's anything/information you think could be helpful, please let me know. |
It appears that |
Can you give https://github.com/vega/ts-json-schema-generator a try? I'm actively adding features to that version while here I mostly help fix bugs. |
Yep, sure thing @domoritz. Digging further on my end it looks like there's a recursive type definition for react If I change |
Interesting. We should be able to support recursive types (see
|
Thanks for explaining that behavior. I'll try to investigate that logic to see why this case is slipping through RE |
Hmm, the jsx is an option you add to your tsconfig. See https://github.com/vega/vega-lite/blob/955272b94b5d459e7538ff78075df9b32b9a6756/package.json#L44 for an example in my large TS project. |
ok, i had to pass my tsconfig as Still having some issues with the react typedefs but no longer a stack overflow
Worth opening an issue over there? |
Hmm, that error happens when I didn't implement a particular node type. I won't have type to look into this until March but you could submit an issue and maybe look into a PR. |
Ok, thanks for all of your help @domoritz. I'll get some issues with reproduction repos filed sometime today. |
Is there any progress? |
I'd recommend using https://github.com/vega/ts-json-schema-generator instead since I don't have the cycles to woke on new features for this library. |
This seems to be triggered when a component is using a
interface ExComponentProps {
cta: React.ReactNode;
// ... all the others as normal
}
interface ExComponentProps {
/**
* @TJS-type Library
*/
cta: React.ReactNode;
// ... all the others as normal
} |
Fixed in #383 |
I unfortunately get the following error a lot when I use this package.
The title of the error is always the same but the rest of the stack trace seems to be pretty random depending on where it failed and what type it was run for.
Here is a link to my sampler project which shows off my problems:
@kferrone/sequel_fun
So far I have only had issues with anything related to Sequelize which may help narrow the problem. I've tried the same scenarios on other Interfaces from Elasticsearch, Restify, Winston, etc... and they all worked.
Do you see anything you know would trip this out? Any ideas on how to get it to generate correctly?
Some things I tried:
--stack-size=5000
, however that just gives me a stack fault and quits no matter whatI do.ISequelizeUriConfig
, still the same issue, which at least shows it's not what I have done causing the issues.The text was updated successfully, but these errors were encountered: