I followed the instructions here to add authentication for my iOS app. I first ran amplify auth update, followed through all the steps, and then ran amplify push. However, amplify push failed with the following error:
/usr/local/lib/node_modules/@aws-amplify/cli/node_modules/gluegun/build/index.js:13
throw up;
^
Error: ENOENT: no such file or directory, stat '/Users/yunfeiguo/Documents/programming/zhiyouios/amplify/#current-cloud-backend/api/zhiyou'
Any idea what might the issue be here?
I did the following and it resolved my issues.
Follow the instructions here and call amplify hosting add.
Then move the api and auth folders and their content from the backend folder to the #current-cloud-backend folder.
Then run amplify push.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With