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

Circular Reference Error with Array of Recursive Objects #1827

Open
akifunal opened this issue Aug 16, 2024 · 1 comment · May be fixed by #1915
Open

Circular Reference Error with Array of Recursive Objects #1827

akifunal opened this issue Aug 16, 2024 · 1 comment · May be fixed by #1915

Comments

@akifunal
Copy link

akifunal commented Aug 16, 2024

Describe the bug

I previously opened an issue #1823 related to a "Type of property 'x' circularly references itself" error, which was resolved (thanks for that!). The fix worked well for our initial cases. I’ve now encountered another scenario where the error reappears. This time, it occurs with an array of objects that reference a recursive schema.

To Reproduce Steps to reproduce the behavior:

typescriptlang playground

Expected behavior

I expected this recursive array structure to work without triggering a circular reference error, especially given that a similar issue was previously resolved.

Environment:

  • OS: MacOS Sonoma 14.6.1
  • package-name...: [email protected]
  • NodeJS: 20.14.0
  • TypeScript: 5.5.4

Additional context

This is a similar issue to the one you resolved before, but it involves arrays of recursive objects, which seems to introduce a new layer of complexity.

@akifunal
Copy link
Author

akifunal commented Sep 9, 2024

Hi,

I wanted to follow up on this issue as it’s causing significant problems across six of our React apps. Given its impact, we would greatly appreciate it if you could prioritize a fix.

Thank you for all your work on this amazing library! ❤️

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