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

Getting 'ctx.getResource is not a function' error when trying to push to AWS Amplify #14

Open
jerocosio opened this issue Aug 10, 2022 · 1 comment

Comments

@jerocosio
Copy link

I followed all the steps on the installation and I wanted to make a quick test with this field:

title: String! @assert(condition: ".length() > 10")

But when I try to push the change to Amplify I'm getting this error:

✖ An error occurred when pushing the resources to the cloud
🛑 An error occurred during the push operation: /
ctx.getResource is not a function

I don't see any transformers generated on the push, so I don't really know where I can look for more information on this error.

Any suggestions?

@stewjacks
Copy link

Old issue but for anyone that comes across this: you can't use this with the GraphQL Transformer v2. This is built for v1. https://docs.amplify.aws/cli/migration/transformer-migration/

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