Encounter error when deploy React app to AWS

90 Views Asked by At

After following TestDriven.io to deploy React code to AWS, I encounter this error:

enter image description here

This is not an issue in Local. Users API works as well. Only on client part I encounter this error. Any thoughts regarding this issue?

1

There are 1 best solutions below

1
On

The error is probably after the build. either users is undefined or passing null value which .map() cant loop over an array. Try keeping null validation before running .map()