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 dependency on scaffolding #393

Open
mfasanya opened this issue Oct 3, 2022 · 1 comment
Open

Circular dependency on scaffolding #393

mfasanya opened this issue Oct 3, 2022 · 1 comment
Assignees
Labels
bug Something isn't working enhancement New feature or request
Milestone

Comments

@mfasanya
Copy link

mfasanya commented Oct 3, 2022

Getting an issue 'Cannot access X before initialization'

I believe this is due to the auto generated files having a circular dependency. Is there a way to merge all the base files into one file to help fix this issue?

@krstns
Copy link

krstns commented Oct 5, 2022

When looking through other issues in mst-gql you could find @jkolyer's script https://gist.github.com/jkolyer/d2577a524f632953f5ff409aa3ec721f

I've made a fork and updated the script so I don't have to do any manual work:
https://gist.github.com/krstns/761a9f2a1f06627904e0db3289ab6cb0

Unfortunately, if you have a log of models you will eventually hit: TS7056: The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed.

(I'm now struggling with it).

After a recent update of.. most likely node, or something else I started to get new series of errors and most likely will have to update that script accordingly.

If you are only starting your project and trying to use mst-gql please bear in mind it's not suitable for projects with a lot of models.

@Benz19 Benz19 added the bug Something isn't working label Nov 4, 2022
@Benz19 Benz19 added this to the v0.19.0 milestone Nov 4, 2022
@jesse-savary jesse-savary added the enhancement New feature or request label Nov 6, 2022
@jesse-savary jesse-savary added this to To do in Overhaul DX via automation Nov 6, 2022
@jesse-savary jesse-savary moved this from Needs triage to High priority in Stability and Automated Testing Nov 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
Development

No branches or pull requests

4 participants