-
Notifications
You must be signed in to change notification settings - Fork 822
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
Unable to locate custom transformer during gql compile #6330
Comments
@yaquawa did you change the npm global path between when you installed the CLI and when you installed this transformer? Can you check if the package is actually installed at the path that the CLI is looking for it? |
@edwardfoyle here is the global path of mine.
I could find graphql-default-value-transformer in By the way
|
Here is the full error message:
|
@yaquawa I was able to successfully compile a schema using that transformer plugin and the latest version of the CLI. Are you using a local installation of the CLI? The CLI only supports global installation |
@edwardfoyle can you tell me what's your
|
my |
@edwardfoyle here is mine, looks fine?
|
@edwardfoyle can you tell me your amplify's version? |
@edwardfoyle I found this is an issue of the upstream lib |
Thanks for digging into that! Marking this as a dependency issue |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically closed because of inactivity. Please open a new issue if you are still encountering problems. |
This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs. Looking for a help forum? We recommend joining the Amplify Community Discord server |
I have read this article https://docs.amplify.aws/cli/plugins/authoring#authoring-custom-graphql-transformers--directives
but no mention on how to use a custom transformer.
I have tried graphql-default-value-transformer, with the following setting in my
amplify/backend/api/xx/transform.conf.json
But I got this error when I run
amplify push
(I have installed the package both locally and globally.)
How to fix the issue
I found this is an issue of the upstream lib
global-dirs
.So I created an issue at here.
sindresorhus/global-directory#21
Amplify team should upgrade the
global-dirs
once the issue has been fixed.The text was updated successfully, but these errors were encountered: