yezihaohao / react-admin

:sparkles: react-admin system solution : react 后台管理系统解决方案
https://admiring-dijkstra-34cb29.netlify.com/
MIT License
6.65k stars 1.87k forks source link

Uncaught (in promise) TypeError: smenus is not iterable #143

Closed geektcp closed 3 years ago

geektcp commented 3 years ago

env: node-v12.10.0 webstorm2018

git clone git@github.com:yezihaohao/react-admin.git cd react-admin yarn install yarn start

http://localhost:3006/

SiderCustom.tsx:84 Uncaught (in promise) TypeError: smenus is not iterable at SiderCustom (:3006/static/js/main.chunk.js:916) at renderWithHooks (:3006/static/js/0.chunk.js:299434) at updateFunctionComponent (:3006/static/js/0.chunk.js:301613) at beginWork (:3006/static/js/0.chunk.js:303138) at HTMLUnknownElement.callCallback (:3006/static/js/0.chunk.js:284827) at Object.invokeGuardedCallbackDev (:3006/static/js/0.chunk.js:284876) at invokeGuardedCallback (:3006/static/js/0.chunk.js:284929) at beginWork$1 (:3006/static/js/0.chunk.js:307690) at performUnitOfWork (:3006/static/js/0.chunk.js:306657) at workLoopSync (:3006/static/js/0.chunk.js:306630) at performSyncWorkOnRoot (:3006/static/js/0.chunk.js:306248) at :3006/static/js/0.chunk.js:295768 at unstable_runWithPriority (:3006/static/js/0.chunk.js:353271) at runWithPriority$1 (:3006/static/js/0.chunk.js:295714) at flushSyncCallbackQueueImpl (:3006/static/js/0.chunk.js:295763) at flushSyncCallbackQueue (:3006/static/js/0.chunk.js:295751) at batchedUpdates$1 (:3006/static/js/0.chunk.js:306354) at Object.notify (:3006/static/js/0.chunk.js:314849) at Subscription.notifyNestedSubs (:3006/static/js/0.chunk.js:314920) at Subscription.handleChangeWrapper (:3006/static/js/0.chunk.js:314925) at dispatch (:3006/static/js/0.chunk.js:349837) at :3006/static/js/0.chunk.js:349588 at dispatch (:3006/static/js/0.chunk.js:350255) at :3006/static/js/0.chunk.js:349405 at :3006/static/js/0.chunk.js:349585 at :3006/static/js/0.chunk.js:350093 at :3006/static/js/0.chunk.js:349485 at :3006/static/js/main.chunk.js:262 at setAlitaMenu (:3006/static/js/main.chunk.js:229) at :3006/static/js/main.chunk.js:234


冒烟测试不通过。

yezihaohao commented 3 years ago

应该是mock数据偶发性报错,注释掉异步菜单或者过段时间试试