Amplify and React App: Build has failed

0

Hi!

I am trying to host my React app on Amplify from GitHub, but whenever I deploy it, it fails to build. However, when I run it on localhost, it works fine. I got this:

build logs

and this is my files in repository : files

how can I resolve this?

profile pictureAWS
Rowaida
已提問 9 個月前檢視次數 264 次
1 個回答
0

Hi,

it seems that you're exactly in the same situation as https://www.wafrat.com/fixing-2/ when you deploy: you have an issue in package version that you don't have on your local host because of a different install of core components.

So, please, try to apply the proposed fix.

Best,

Didier

profile pictureAWS
專家
已回答 9 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南