React background template startup reports an error TypeError: Cannot read property 'forEach' of undefined

two solutions

1. According to the error message, find the ReactRefreshEntry.js file, comment out line 8, restart the project, and refresh the page.

insert image description here
insert image description here

2. Close the React Developer Tools extension (if it is not installed, no error will be reported).

insert image description here

Guess you like

Origin blog.csdn.net/m0_49045925/article/details/116405444