-
Notifications
You must be signed in to change notification settings - Fork 67
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
SQL - Type instantiation is excessively deep and possibly infinite.ts(2589) #2551
Comments
Hey @kekami, Thanks for raising this. We made some improvements in our types internally and it will address this issue. We will let you know once it is released. |
Hey @AnilMaktala how is it going with the fix? If you want me to validate the fix against my schema, which has grown significantly since this issue was posted, just let me know. I'd be happy to try it. |
@kekami - can you upgrade to the latest version? This should be resolved in latest backend / data version. Check in your package-lock that the @aws-amplify/data-schema subpackage is 1.3.0 |
Hi @renebrandel, I am on the latest backend, the subpackage was still on 1.2.5. However, bumping it did not help, the issue remains. |
did you remove your package-lock.json and node_modules folder? |
maybe also try: |
You are right! My old schema now works. However my current one is a tad bigger 😅 And is still experiencing problems. schema.sql.ts
resource.ts
|
And yes I tried nuking node_modules and lock files. So should be up to date. |
I think you have to create a massive schema to test against, since I seem to be hitting the limits after just a few weeks worth of work ^^ |
Yeah, we've expanded the schema sizes quite a bit but looks like there are still some optimization we need to look into for SQL. The same set on DDB seems to function okay. It looks like it's the combination of renaming and setting relationships. The problem seems to be if you use both. |
Cheers for looking into it! I've ts-ignored it for now, but I do miss type safety land 🥲 Overall the SQL implementation is really enjoyable to use, and it will be rock solid when the few couples of bugs I've found are fixed 💪 |
Although I am updating to the latest version like this, the @aws-amplify/data-schema version does not become 1.3.0.
|
I have a schema with 2 items in it throwing this issue, I don't believe that's true. |
Environment information
Description
Keep on hitting
Type instantiation is excessively deep and possibly infinite.ts(2589)
while working with the sql schema.Repro:
The text was updated successfully, but these errors were encountered: