-
Notifications
You must be signed in to change notification settings - Fork 116
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
All Amplify builds suddenly started failing (even past successful builds) #3943
Comments
Hey, @sgd2z 👋. Can you share your full |
Yeah only using amplify hosting and nothing besides aws-sdk |
Looking at the package.json, I realized, I don't need that build command and noticed that it was being called. So I removed it and now am running into a different issue:
|
@sgd2z, thanks for the quick follow up. To better assist, I'm going to transfer this issue to our |
@cwomack Thanks. After updating the token I'm back to the original error. But I read it in more detail and have narrowed down the real issue to this:
I suspect something has changed in the last few days with how the amplify backend deals with paths because the schema file is in the default location of prisma/schema.prisma and nothing has changed otherwise. |
So, I figured out the issue. I had a script in the frontend package.json called |
This issue is now closed. Comments on closed issues are hard for our team to see. |
This issue has been automatically locked. |
Before opening, please confirm:
JavaScript Framework
React
Amplify APIs
REST API
Amplify Version
v6
Amplify Categories
function
Backend
Amplify CLI
Environment information
I've removed tokens for security
Describe the bug
Backend build fails with this error:
When the build started failing, the version of prisma in yarn-lock was 5.15 (package.json had "^5.15.0"). So I was really confused to see 5.16. I changed package.json to have "5.15.0" exactly and got the same error. After that I updated my package.json to have "^5.16.0" to see if that fixes the problem. But I still got the same error. After that I tried running a build that was successful in the past to eliminate doubts that new code is causing the error. Past successful builds are also failing now.
Expected behavior
Builds in amplify should succeed and backend should get deployed.
Reproduction steps
I have amplify set up to build on pushes to certain branches. Expectation is that those builds should succeed in Amplify. The error stared happening yesterday. Last successful build was 6/21/2024. Same build fails today.
Code Snippet
// Put your code below this line.
Log output
aws-exports.js
No response
Manual configuration
No response
Additional configuration
No response
Mobile Device
No response
Mobile Operating System
No response
Mobile Browser
No response
Mobile Browser Version
No response
Additional information and screenshots
No response
The text was updated successfully, but these errors were encountered: