Skip to content

Type generation fails with relational data #1

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

Open
Jonesus opened this issue May 5, 2021 · 1 comment
Open

Type generation fails with relational data #1

Jonesus opened this issue May 5, 2021 · 1 comment

Comments

@Jonesus
Copy link

Jonesus commented May 5, 2021

When having a Directus schema configured with nested M2A interfaces and translations the generation fails with the following error:

AggregateError
    at /home/jones/.npm/_npx/3ab71cb4b039ec8b/node_modules/typed-utilities/build/iterAsync.js:97:27
    at step (/home/jones/.npm/_npx/3ab71cb4b039ec8b/node_modules/typed-utilities/build/iterAsync.js:33:23)
    at Object.next (/home/jones/.npm/_npx/3ab71cb4b039ec8b/node_modules/typed-utilities/build/iterAsync.js:14:53)
    at fulfilled (/home/jones/.npm/_npx/3ab71cb4b039ec8b/node_modules/typed-utilities/build/iterAsync.js:5:58)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

Is there a known pitfall somewhere? I'll try to come up with a minimal reproduction tomorrow!

@Phreeshad
Copy link

@Jonesus
Maybe unrelated, but do you have collections with similar names to Directus collections? E.g. sessions similar to directus_sessions.

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

2 participants