简体   繁体   English

将 React 应用程序部署到 AWS 时遇到错误

[英]Encounter error when deploy React app to AWS

After following TestDriven.io to deploy React code to AWS, I encounter this error:在按照 TestDriven.io 将 React 代码部署到 AWS 之后,我遇到了这个错误:

在此处输入图像描述

This is not an issue in Local.这在本地不是问题。 Users API works as well.用户 API 也可以。 Only on client part I encounter this error.仅在客户端部分我遇到此错误。 Any thoughts regarding this issue?关于这个问题有什么想法吗?

The error is probably after the build.错误可能是在构建之后。 either users is undefined or passing null value which.map() cant loop over an array.用户未定义或传递 null 值 which.map() 无法遍历数组。 Try keeping null validation before running.map()在 running.map() 之前尝试保持 null 验证

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM