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

generating for a type with imported type fields results in segfault #307

Open
igorfraa opened this issue Oct 11, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@igorfraa
Copy link

//example 1.ts
import { Person } from '@/example2'
export interface Family {
  member: Person[]
}
//example2.ts
export interface Person {
  Name: string
  Children: { [key: string]: number | Person[] }
}

then ts-auto-guard --export-all src/example1.ts naturally results in Stack: RangeError: Maximum call stack size exceeded by ts-morph or Segmentation fault: 11 when stack size substaintially increased.

This does not happen when types are defined in the same file.

@rhys-vdw rhys-vdw added the bug Something isn't working label Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants