Closed DevTGhosh closed 4 months ago
Hey @DevTGhosh, thank you for reaching for reaching out. Does the Amplify backend or auth folder contain the testing-library__jest-dom
file?
Was there any recent changes on project such as tsconfig or upgrade to the Amplify CLI version?
I couldn't find the the testing-library__jest-dom
file anywhere.
Anyways after trying making a few changes I was able to make it work by making the following changes:
Amplify.yml file in build settings I was facing issues with eslint as well
version: 1
backend:
phases:
build:
commands:
- '# Execute Amplify CLI with the helper script'
- npx eslint -v
- amplifyPush --simple
frontend:
phases:
preBuild:
commands:
- nvm use 16
- npm ci --legacy-peer-deps
- npm run release
artifacts:
baseDirectory: /build
files:
- '**/*'
customHeaders:
- pattern: '*'
headers:
- key: 'Access-Control-Allow-Origin'
value: '*'
Amplify cli version 12.12.4 Build image - Amazon Linux 2023
Why would this solve the issue or why it was caused in the first place is beyond me. But closing the issue for now.
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
If applicable, what version of Node.js are you using?
16.20.2
Amplify CLI Version
12.9.0
What operating system are you using?
Amazon Linux 2
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
On amplify console build it is failing to update the amplify env
I am able to make changes on my local machine. The amplify console is failing immediately.
It says there is some issue with types in
testing-library__jest-dom
and to fixauth/overide.ts
but I haven't made any changes to them in a long while. ErrorExpected behavior
Amplify console to push the changes
Reproduction steps
Amplify.yml file in build settings using amplify cli version 12.9.0 and Amazon Linux 2
Link a branch to amplify and push.
Project Identifier
9416a52d4390bc60fee0f1de8176ba91
Log output
BUILD.txt
Additional information
No response
Before submitting, please confirm: