-
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
At the end of the push process: ENOENT no such file or directory, stat #13647
Comments
Hey @SebSchwartz, thank you for reaching. Could you try changing directory into |
Hi @ykethan , packages:
# include packages in subfolders (e.g. apps/ and packages/)
- 'apps/*'
- 'packages/*'
- 'tools/*'
- 'packages/webapp/amplify/backend/*'
- 'packages/webapp/amplify/backend/custom/*'
- 'packages/webapp/amplify/backend/function/*/src'
- 'packages/webapp/amplify/backend/function/layer1/lib/nodejs'
- 'packages/webapp/amplify/backend/function/layer2/lib/nodejs' So the steps described (removing all modules then retry) doesn't work :( |
Hey @SebSchwartz, thank you for the information. Amplify CLI unfortunately does not handle symlinks well when it downloads and unzips your backend state (e.g. on |
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?
pnpm -g
If applicable, what version of Node.js are you using?
v18.19.0
Amplify CLI Version
12.10.1
What operating system are you using?
mac
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
No manual changes made
Describe the bug
I use PNPM. Just switched from cli v10.7.3 to v12.10.1.
I push my change, everything is push and updated then at the end, just before the post-push hooks, I always got this error:
🛑 ENOENT: no such file or directory, stat '/Users/myUser/Documents/Dev/myProject/packages/frontend/amplify/backend/function/myFonction/src/node_modules/@types/aws-lambda'
The function got the @types/aws-lambda installed as devDependencies.
The problem is that the cli wants to update everything again on the next push as I suppose it didn't save it was done.
I already tried to change the amplify.state of the function with:
Expected behavior
No error message and no redeploy everything each time.
Reproduction steps
Project Identifier
3d4f4c99-5447-4f34-9050-9d0fe8e50c74
Log output
Additional information
No response
Before submitting, please confirm:
The text was updated successfully, but these errors were encountered: