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 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则