简体   繁体   中英

Blank page when deploy React app on github

在此处输入图像描述

{

{ "homepage": "https://NegiRishab.github.io/offline-to-do-app", "name": "to-do-app", "version": "0.1.0", "private": false, "dependencies": { "@testing-library/jest-dom": "^5.16.4", "@testing-library/react": "^13.3.0", "@testing-library/user-event": "^13.5.0", "gh-pages": "^4.0.0", "react": "^18.2.0", "react-dom": "^18.2.0", "react-scripts": "5.0.1", "web-vitals": "^2.1.4" }, }

It looks like whatever you are trying to iterate over with toConsumableArray is null and cannot be looped over because of that:

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/is_not_iterable

You might consider adding a null check before trying to iterate, and only call toConsumableArray if the object is not null.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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