-
Notifications
You must be signed in to change notification settings - Fork 825
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
Warning: Amplify command hooks are disabled in the current execution environment. See https://docs.amplify.aws/cli/usage/runtime-hooks for more information. #8147
Comments
Hi @maydna, thanks for reporting the issue! I've opened a PR to fix the broken docs link. Do you have a folder path in your project that resembles |
thanks. no there isn't any path like |
hi @maydna Do you have folder path in your system (not in amplify project) with |
there's one in
|
For the workaround , can you try to remove the folder and try again? |
thanks. i removed it but the warning is still there.
|
Hey @maydna 👋 are you still experiencing this issue? From the console snippets you've added it looks like there is a folder |
it works after remove /opt/amazon! thanks
|
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 |
Before opening, please confirm:
How did you install the Amplify CLI?
npm install -g @aws-amplify/cli@latest
If applicable, what version of Node.js are you using?
v14.15.4
Amplify CLI Version
5.5.0
What operating system are you using?
MacOS
Amplify Categories
Not applicable
Amplify Commands
push
Describe the bug
i would like to use the new command hooks function introduced by amplify cli 5.5.0 and i already have a
pre-push.js
copied from the sample in amplify/hooks. the pre-push.js is as below:however after i run amplify push the following warning pops up:
and there's no output for my
console.log(data,error)
scriptExpected behavior
should be no warning & print out the results from
console.log(data,error)
Reproduction steps
GraphQL schema(s)
# Put schemas below this line
Log output
Additional information
btw the https://docs.amplify.aws/cli/usage/runtime-hooks/ link is incorrect / not ready yet. i tried to find how to "enable" the command hooks in https://docs.amplify.aws/cli/usage/command-hooks/ but still no luck.
The text was updated successfully, but these errors were encountered: