-
Notifications
You must be signed in to change notification settings - Fork 824
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
yarn 3 - amplify push then amplify pull deletes yarn.lock, .yarnrc.yml then errors on building typescript override #12402
Comments
Hey @JefStat 👋 thanks for raising this! While we have a separate report filed for Did |
I'm not clear on how to answer this. The pull works. I assume the push is not including the yarn.lock in the zip. I need to check if there is a force push to inspect why it's not including yarn.lock Debugging further: The problem happens here: The backend dir is deleted wiping away the local yarn.lock
The restoreBackend flag is set to true because the noOverride flag hasn't been set.
|
I've sorted this. TLDR cannot use yarn 3.5.0 in the backend. I am using 2 yarn versions in the repo via the package manager settings.
Amplify push fails because the backend cannot use yarn 3.5.0 due to this unsupported option in:
issue ref: #10815 I probably hamstrung myself pushing a backend bundle without the yarn.lock file while iterating over settings trying to get amplify to use the version of yarn I expected for the frontend and backend builds |
|
Hey @JefStat thank you for providing those details! Despite the oddity I'd like to keep this issue open to introduce better handling for yarn 3 |
The following documentation will not work with yarn classic either because of the In the following script in package.json the
The alternative which I am using is some akin to:
( |
Hey @JefStat yes, I am also seeing a few issues deploying with yarn 3, namely the lack of support for This issue is also similar to #6382, which is requesting support for additional package managers outside npm and yarn 1.x, namely pnpm. I'll mark this as a duplicate feature-request to improve the experience here with yarn 3, and address the vague error on |
|
How did you install the Amplify CLI?
npm install -g @aws-amplify/cli
If applicable, what version of Node.js are you using?
16.19.1
Amplify CLI Version
11.0.3
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
amplify pull deletes files required for the prebuild of overrides when running a backend push
Expected behavior
push and pull to be a no-op if there are no changes
Reproduction steps
Steps:
3 of these 4 files have been deleted yarn.lock, .yarnrc.yml, APIGatewayAuthStack.json
Project Identifier
729269ed0dfa7238ed8a5b3b8f9c5f9a
Log output
Additional information
AWS_PROFILE=amplify amplify env checkout dev
npm -g i corepack; corepack enable; corepack prepare yarn@stable --activate
Before submitting, please confirm:
The text was updated successfully, but these errors were encountered: