-
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
Issue with amplify push after adding function #13593
Comments
Hey @sidshrivastav, thank you for reaching. The issue is currently being tracked on #13001 and #13377. Refer to the workarounds posted here: #13001 (comment) and #13377 (comment) After switching to npm, was the |
hey @ykethan, sorry I am not sure how to check amplify state, can you help me with that? |
Also with yarn 3, 4 I am getting, and with classic verison: Workaround you shared, I don't think is related to that. |
Hey @sidshrivastav, the Additionally, curious on the error message |
npm version is 10.2.4 Initially when "amplify push" ran with yarn by default Error: cd to function src, and ran npm i Error Amplify state remains same.
|
@ykethan Additionally I ran it on docker container just to test on latest nodejs image, "amplify push" didn't push due to permission but i didn't got these issues. |
@sidshrivastav thank you for the information. We can add/modify the scripts in the state to modify the build command. For example default lambda function:
or
|
Hey, I started using nix environment where amplify is working. I test this modification on scripts and let you know |
Closing the issue due to inactivity. Do reach out to us if you require any assistance. |
This issue is now closed. Comments on closed issues are hard for our team to see. |
How did you install the Amplify CLI?
npm install -g @aws-amplify/cli
If applicable, what version of Node.js are you using?
v20.11.1
Amplify CLI Version
12.10.1
What operating system are you using?
Ubuntu 22.04
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
No manual changes.
Describe the bug
I added a function using amplify add function. Now whenever I try to run amplify push, it was throwing error related to yarn.
Initially I was getting error
I tried all the possible solution but nothing worked.
After that I updated yarn to version "4.1.0", Now I am getting
In function source "npm i" is working, which switch the use of yarn to npm but then I get
Expected behavior
It should allow me to push successfully
Reproduction steps
Project Identifier
1a1531b527bd8301a262c456a8ba59a0
Log output
Yarn Error
NPM error
Additional information
No response
Before submitting, please confirm:
The text was updated successfully, but these errors were encountered: