amplify-cli: amplify push throws "The "path" argument must be of type string." error
Before opening, please confirm:
- I have installed the latest version of the Amplify CLI (see above), and confirmed that the issue still persists.
- I have searched for duplicate or closed issues.
- I have read the guide for submitting bug reports.
- I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
How did you install the Amplify CLI?
npm
If applicable, what version of Node.js are you using?
12.x
Amplify CLI Version
5.1.0
What operating system are you using?
Windows
Amplify Categories
auth, function, api
Amplify Commands
push
Describe the bug
× An error occurred when pushing the resources to the cloud
The "path" argument must be of type string. Received an instance of Context
An error occurred during the push operation: The "path" argument must be of type string. Received an instance of Context
Expected behavior
amplify push to succeed
Reproduction steps
- Web app running in angular, usinglambda function to fetch records from S3 bucket.
- Modified a lambda function.
- Tried to push by running
amplify pushand got the error. - Updated the amplify, Angular and Node js to the latest versions and still the error persists.
Package.json contents
{
"name": "app name",
"version": "1.0.0",
"scripts": {
"ng": "ng",
"start": "ng serve --port 4203",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
},
"private": true,
"dependencies": {
"@angular/animations": "~12.1.1",
"@angular/common": "~12.1.1",
"@angular/compiler": "~12.1.1",
"@angular/core": "~12.1.1",
"@angular/forms": "~12.1.1",
"@angular/localize": "^12.1.1",
"@angular/platform-browser": "~12.1.1",
"@angular/platform-browser-dynamic": "~12.1.1",
"@angular/router": "~12.1.1",
"@aws-amplify/cli": "^5.1.0",
"@aws-amplify/core": "^4.1.2",
"@aws-amplify/storage": "^4.2.1",
"@fortawesome/angular-fontawesome": "^0.9.0",
"@fortawesome/fontawesome-svg-core": "1.2.35",
"@fortawesome/free-brands-svg-icons": "5.15.3",
"@fortawesome/free-regular-svg-icons": "5.15.3",
"@fortawesome/free-solid-svg-icons": "5.15.3",
"@ng-bootstrap/ng-bootstrap": "^10.0.0",
"@ng-select/ng-select": "^7.1.0",
"@types/prismjs": "^1.16.5",
"@vendia/serverless-express": "^4.3.9",
"amplify-category-function": "^2.33.0",
"amplify-category-hosting": "^2.7.12",
"amplify-category-storage": "^2.12.0",
"aws-amplify": "^4.1.2",
"aws-amplify-angular": "^6.0.4",
"aws4": "^1.11.0",
"bootstrap": "^5.0.2",
"cors": "^2.8.5",
"express": "^4.17.1",
"lodash": "^4.17.21",
"ngx-spinner": "^12.0.0",
"npm": "^7.19.1",
"prismjs": "^1.24.0",
"rxjs": "~7.1.0",
"tslib": "^2.3.0",
"zone.js": "~0.11.4"
},
"devDependencies": {
"@angular-devkit/build-angular": "~12.1.1",
"@angular/cli": "~12.1.1",
"@angular/compiler-cli": "~12.1.1",
"@types/jasmine": "~3.7.7",
"@types/jasminewd2": "~2.0.9",
"@types/node": "^15.14.0",
"codelyzer": "^6.0.2",
"lodash": "^4.17.21",
"ts-node": "~10.0.0",
"tslint": "~6.1.0",
"typescript": "^4.3.5"
}
}
GraphQL schema(s)
# Put schemas below this line
Log output
# Put your logs below this line
Additional information
No response
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 15 (8 by maintainers)
Hey @catherine-augustine I received your zip file and will be taking a look at it!
Hey @catherine-augustine I saw your message, do you have a storage provider you could upload to such as Google Drive?