【发布时间】:2020-07-10 11:07:05
【问题描述】:
我创建了一个反应应用程序来显示不同国家/地区的电晕感染情况。这在我的本地主机上工作,但是当我在 github 或 heroku 上部署它时,会产生错误。以下错误在块引用中给出。当我检查文件 country.js 时查看错误,没有 n[0]。请帮助下面是托管应用程序和应用程序 github 存储库的链接。
类型错误:“n[0] 未定义” E 国家.js:13 E 国家.js:11 反应 7 不稳定的runWithPriority scheduler.production.min.js:19 反应 6 一个 App.js:22 你 runtime.js:45 _invoke runtime.js:274 t runtime.js:97 r asyncToGenerator.js:3 asyncToGenerator.js:25 反应-dom.production.min.js:209:194 反应 5 不稳定的runWithPriority scheduler.production.min.js:19 反应 4 不稳定的runWithPriority scheduler.production.min.js:19 反应 6 一个 App.js:22 你 runtime.js:45 _invoke runtime.js:274 t runtime.js:97 r asyncToGenerator.js:3 asyncToGenerator.js:25 类型错误:n[0] 未定义 country.js:13:30
this is link to hosted app on heroku 和 this is link to app hosted on Github
【问题讨论】:
-
错误 - 无法读取未定义的属性“阿富汗”。 Country.js 第 13 行
标签: reactjs heroku web-deployment