Olá! Gostaria de uma ajuda! Finalizei o challenge do aluraflix, ele estava funcionando, tinha 2 erros, que agora nem consigo mostrar, pq depois que inseri o api ele está dando vários erros e não carrega mais. O projeto está hospedado em https://github.com/balicoelho/Baliflix A api está em https://github.com/balicoelho/baliflix-api
Seguem erros no momento:
Uncaught TypeError: Cannot read properties of undefined (reading 'categoryColor')
at Home (index.jsx?t=1693337743046:51:112)
at renderWithHooks (chunk-X3B7SAOS.js?v=71172f78:12171:26)
at mountIndeterminateComponent (chunk-X3B7SAOS.js?v=71172f78:14921:21)
at beginWork (chunk-X3B7SAOS.js?v=71172f78:15902:22)
at HTMLUnknownElement.callCallback2 (chunk-X3B7SAOS.js?v=71172f78:3674:22)
at Object.invokeGuardedCallbackDev (chunk-X3B7SAOS.js?v=71172f78:3699:24)
at invokeGuardedCallback (chunk-X3B7SAOS.js?v=71172f78:3733:39)
at beginWork$1 (chunk-X3B7SAOS.js?v=71172f78:19761:15)
at performUnitOfWork (chunk-X3B7SAOS.js?v=71172f78:19194:20)
at workLoopSync (chunk-X3B7SAOS.js?v=71172f78:19133:13)
The above error occurred in the <Home> component:
at Home (http://localhost:5173/src/pages/Home/index.jsx?t=1693337743046:24:31)
at RenderedRoute (http://localhost:5173/node_modules/.vite/deps/react-router-dom.js?v=71172f78:3327:5)
at Outlet (http://localhost:5173/node_modules/.vite/deps/react-router-dom.js?v=71172f78:3720:26)
at PaginaPadrao
at RenderedRoute (http://localhost:5173/node_modules/.vite/deps/react-router-dom.js?v=71172f78:3327:5)
at Routes (http://localhost:5173/node_modules/.vite/deps/react-router-dom.js?v=71172f78:3780:5)
at Router (http://localhost:5173/node_modules/.vite/deps/react-router-dom.js?v=71172f78:3727:15)
at BrowserRouter (http://localhost:5173/node_modules/.vite/deps/react-router-dom.js?v=71172f78:4207:5)
at AppRoutes
Consider adding an error boundary to your tree to customize error handling behavior.
Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.
chunk-X3B7SAOS.js?v=71172f78:19409 Uncaught TypeError: Cannot read properties of undefined (reading 'categoryColor')
at Home (index.jsx?t=1693337743046:51:112)
at renderWithHooks (chunk-X3B7SAOS.js?v=71172f78:12171:26)
at mountIndeterminateComponent (chunk-X3B7SAOS.js?v=71172f78:14921:21)
at beginWork (chunk-X3B7SAOS.js?v=71172f78:15902:22)
at beginWork$1 (chunk-X3B7SAOS.js?v=71172f78:19749:22)
at performUnitOfWork (chunk-X3B7SAOS.js?v=71172f78:19194:20)
at workLoopSync (chunk-X3B7SAOS.js?v=71172f78:19133:13)
at renderRootSync (chunk-X3B7SAOS.js?v=71172f78:19112:15)
at recoverFromConcurrentError (chunk-X3B7SAOS.js?v=71172f78:18732:28)
at performConcurrentWorkOnRoot (chunk-X3B7SAOS.js?v=71172f78:18680:30)
Obrigada!