Skip to content

Circular Dependencies #4526

@sarink

Description

@sarink

Issue type:

[x] question
[ ] bug report
[ ] feature request
[ ] documentation issue

TypeORM version:

[x] latest
[ ] @next
[ ] 0.x.x (or put your version here)

Bi-directional relations are circular by definition. With webpack and typescript on the backend, how can we possibly solve this issue? Are we actually forced into keeping one giant awful allEntities.ts file?...

I know it's not a typeorm problem, but ES modules don't support circular dependencies, and here we have a fantastic ORM library which basically requires them? I honestly don't understand how anyone can use this, the problem seems so fundamental...

Can the maintainers of this library offer any help or solution? Thanks :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions