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

type generation goes into infinite loop with recursive types #458

Open
philihp opened this issue Mar 13, 2023 · 0 comments
Open

type generation goes into infinite loop with recursive types #458

philihp opened this issue Mar 13, 2023 · 0 comments

Comments

@philihp
Copy link
Contributor

philihp commented Mar 13, 2023

  UserState:
    prevState: UserState?

hathora generate doesn't like this

± hathora g
Generate error: RangeError: Maximum call stack size exceeded
    at /Users/philihp/.nodenv/versions/16.19.1/lib/node_modules/hathora/lib/generate.js:36:37
    at Array.every (<anonymous>)
    at getArgsInfo (/Users/philihp/.nodenv/versions/16.19.1/lib/node_modules/hathora/lib/generate.js:36:18)
    at getArgsInfo (/Users/philihp/.nodenv/versions/16.19.1/lib/node_modules/hathora/lib/generate.js:77:30)
    at /Users/philihp/.nodenv/versions/16.19.1/lib/node_modules/hathora/lib/generate.js:56:116
    at Array.map (<anonymous>)
    at getArgsInfo (/Users/philihp/.nodenv/versions/16.19.1/lib/node_modules/hathora/lib/generate.js:56:65)
    at getArgsInfo (/Users/philihp/.nodenv/versions/16.19.1/lib/node_modules/hathora/lib/generate.js:77:30)
    at getArgsInfo (/Users/philihp/.nodenv/versions/16.19.1/lib/node_modules/hathora/lib/generate.js:73:24)
    at /Users/philihp/.nodenv/versions/16.19.1/lib/node_modules/hathora/lib/generate.js:56:116
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

1 participant