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
gefragt vor 9 Monaten264 Aufrufe
1 Antwort
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
EXPERTE
beantwortet vor 9 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen