You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If applicable, what version of Node.js are you using?
v18.10.0
Amplify CLI Version
12.11.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.
As a workaround made changes described here.
Workaround works but it is annoying to do it every time you push
Describe the bug
After running amplify env checkout <env_name> or amplify push I receive an error Could not initialize platform for <env>: ENOENT: no such file or directory, stat '.../amplify/.temp/#current-cloud-backend/function/<lambda-layer-name>/lib/nodejs/node_modules/bigint-buffer/build/node_gyp_bins/python3'
Expected behavior
Expected behavior is to have working checkout and push without doing workaround mentioned above
Reproduction steps
Create lambda layer
After adding dependency which contains bigint-buffer dependency - deployment stoped working (@solana/web3.js & @coral-xyz/anchor)
# Put your logs below this line
2024-05-03T12:03:13.020Z|info : amplify env core checkout dev
2024-05-03T12:03:19.360Z|info : amplify-provider-awscloudformation.zip-util.downloadZip.s3.getFile([{"Key":"[***]rent-[***]ud-[***]d.zip"},null])
2024-05-03T12:03:19.367Z|info : amplify-provider-awscloudformation.aws-s3.s3.getFile([{"Key":"[***]rent-[***]ud-[***]d.zip","Bucket":"[***]ify-[***]thdapp-[***]ev-[***]444-[***]ment"}])
2024-05-03T12:05:36.724Z|error : Could not initialize platform for 'dev': ENOENT: no such file or directory, stat '.../amplify/.temp/#current-cloud-backend/function/<lambda-layer-name>/lib/nodejs/node_modules/bigint-buffer/build/node_gyp_bins/python3'
ProjectInitFault: Could not initialize platform for 'dev': ENOENT: no such file or directory, stat '.../amplify/.temp/#current-cloud-backend/function/<lambda-layer-name>/lib/nodejs/node_modules/bigint-buffer/build/node_gyp_bins/python3'
Additional information
Workaround which worked for me is here.
Also tried adding pre-build.sh script (deployed it with workaround):
cd ./amplify/backend/function/<layer-name>/lib/nodejs
yarn install --no-bin-links
Before submitting, please confirm:
I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
I have removed any sensitive information from my code snippets and submission.
The text was updated successfully, but these errors were encountered:
olehrdk
changed the title
ENOENT: no such file or directory, stat .../#current-cloud-backend/<lambda-layer-path>/node_gyp_bins/python3
ENOENT: no such file or directory, stat .../#current-cloud-backend/<lambda-layer-path>/.../node_gyp_bins/python3
May 3, 2024
Hey @olehrdk, thank you for reaching out. The issue is currently being tracked on #6144 with comments providing additional information.
Closing this issue as duplicate to track #6144
This issue is now closed. Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.
How did you install the Amplify CLI?
npm install -g @aws-amplify/cli
If applicable, what version of Node.js are you using?
v18.10.0
Amplify CLI Version
12.11.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.
As a workaround made changes described here.
Workaround works but it is annoying to do it every time you push
Describe the bug
After running
amplify env checkout <env_name>
oramplify push
I receive an errorCould not initialize platform for <env>: ENOENT: no such file or directory, stat '.../amplify/.temp/#current-cloud-backend/function/<lambda-layer-name>/lib/nodejs/node_modules/bigint-buffer/build/node_gyp_bins/python3'
Expected behavior
Expected behavior is to have working checkout and push without doing workaround mentioned above
Reproduction steps
amplify env checkout <env_name>
Project Identifier
Project Identifier: 3bc790f8c3b45bfb3ee61223c142b17d
Log output
Additional information
Workaround which worked for me is here.
Also tried adding
pre-build.sh
script (deployed it with workaround):Before submitting, please confirm:
The text was updated successfully, but these errors were encountered: