Open johnemcbride opened 1 year ago
Note, to try and overcome and problems in my dev branch, which is the most fluid, I checked out the pilot branch and env pulled my pilot env. These branches and envs are 'gold standard', nothing has changed there in weeks and exactly the same error.
❯ which yarn
/Users/johnmcbride/.nvm/versions/node/v18.0.0/bin/yarn
❯ yarn --version
3.5.1
Could it be my version of yarn? I saw someone else had challenges with that. I recently did a complete reinstall of brew - is that it maybe?
interestingly yarn.lock is in the git repo, but is gone after Amplify Pull....
omg. fixed after deleting yarn 3 and installing yarn v1.
IS this a thing?
I deserve a chocolate bar after that. Heart attack over. Leaving this open though - maybe some more useful messaging about supported yarn versions or yarn version mismatches would prevent others suffering from mild coronaries.
@johnemcbride thank you for reaching out. I was able to reproduce the issue. Marking this as investigating to dive deeper into the behaviour. Will provide an update as soon as i get any additional information.
Marking this a feature request for improved error messaging when using yarn versions that are not supported.
I'm using Amplify backend within a NextJS front-end and have switched package manager to yarn for the front-end (yarn v4.2.2 to be precise). As per above the yarn.lock file is removed whenever I run amplify pull
and it fails with the above error. At this point, with numerous other niggles, I'm binning Amplify - just not fit for purpose I'm afraid.
How did you install the Amplify CLI?
npm install -g @aws-amplify/cli
If applicable, what version of Node.js are you using?
v18.0.0
Amplify CLI Version
12.3.0
What operating system are you using?
MacOS 13.4.1 (Ventura)
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've had a project working since January. 35 days ago was my last deploy. I am prepping for a launch next week and need to make a few changes. I did a fresh git checkout of the project, then ran Amplify Pull to receive an error:
I don't particularly understand this error message.
My overrides is one which has been working for months: amplify/backend/api/enrolmentmanager/override.ts
A yarn.lock file is already present in amplify/backend, so don't know what it's complaining about (attached as yarn.lock.txt, because .lock files not upload able by GitHub)
I don't know where to begin.
yarn.lock.txt
Expected behavior
Amplify pull should work and I should be able to make changes and then push.
Reproduction steps
Project Identifier
amplify diagnose fails with:
Learn more at https://docs.amplify.aws/cli/reference/diagnose/
✅ Report saved: /var/folders/q1/1x9cp1n17p11gktfwq9qf50r0000gn/T/amplifyapp/report-1693562487418.zip
⠋ Sending zip File at path: '/Users/johnmcbride/projects/amplifyapp/amplify/backend/amplify-meta.json' does not exist ✖ Sending zip
My app id is d1unq6d9vt4zkd.
Log output
Additional information
No response
Before submitting, please confirm: