-
Notifications
You must be signed in to change notification settings - Fork 79
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
Typescript error on filter on GSI #2888
Comments
Hey, thanks for raising this! I'm going to transfer this over to our API repository for better assistance 🙂 |
any update, I would like to proceed |
@rpostulart can you try deleting your node_modules and package-lock.json file, and then upgrade your Let us know if that helps at all If that doesn't help, please share the version of npm list @aws-amplify/data-schema |
There error is still there
it is there twice, is that an issue? |
@chrisbonifacio any help on this would be appreciated :) |
Hey! Apologies for the delay. It shouldn't be an issue that it's listed twice. You can upgrade it to the latest version by running: npm update @aws-amplify/data-schema This should bump it up to 1.10.0. You may also have to restart your TS server or reinstall all dependencies for changes to take effect in your IDE. Let me know if that helps! |
"name": "@aws-amplify/data-schema", I am on that version now, restarted the server and also reinstalled all dependencies. |
Hi @rpostulart apologies for the delay. Unfortunately, I was not able to reproduce the issue described in this issue. I deployed the same schema and created a Notification with my When attempting to query for the Notification by userID, the expected result of the record created in the previous step was returned. I did not encounter a TypeScript error at build time or runtime. here are the versions of amplify packages and TypeScript i used to reproduce the issue: "@aws-amplify/backend": "^1.7.0",
"@aws-amplify/backend-cli": "^1.4.2",
"@aws-amplify/data-schema": "1.14.2",
"typescript": "^5.3.3" |
This issue is now closed. Comments on closed issues are hard for our team to see. |
Environment information
Describe the bug
I get this ts error:
this is the model:
Reproduction steps
run tsc
The text was updated successfully, but these errors were encountered: