2
respostas

estou com um erro, na guia favoritos

peguei esse repositorio pq o meu nao estava funcionando ai fui fazer o teste com esse repositorio e tbm nao funcionu segue a baixo o erro https://github.com/VictorCostaSantos/AluraBooks---FullStack

Uncaught runtime errors: × ERROR Cannot read properties of null (reading 'nome') TypeError: Cannot read properties of null (reading 'nome') at http://localhost:3000/static/js/bundle.js:1694:32 at Array.map () at Favoritos (http://localhost:3000/static/js/bundle.js:1691:54) at renderWithHooks (http://localhost:3000/static/js/bundle.js:26271:22) at updateFunctionComponent (http://localhost:3000/static/js/bundle.js:29151:24) at beginWork (http://localhost:3000/static/js/bundle.js:30863:20) at HTMLUnknownElement.callCallback (http://localhost:3000/static/js/bundle.js:15867:18) at Object.invokeGuardedCallbackDev (http://localhost:3000/static/js/bundle.js:15911:20) at invokeGuardedCallback (http://localhost:3000/static/js/bundle.js:15968:35) at beginWork$1 (http://localhost:3000/static/js/bundle.js:35832:11) ERROR Cannot read properties of null (reading 'nome') TypeError: Cannot read properties of null (reading 'nome') at http://localhost:3000/static/js/bundle.js:1694:32 at Array.map () at Favoritos (http://localhost:3000/static/js/bundle.js:1691:54) at renderWithHooks (http://localhost:3000/static/js/bundle.js:26271:22) at updateFunctionComponent (http://localhost:3000/static/js/bundle.js:29151:24) at beginWork (http://localhost:3000/static/js/bundle.js:30863:20) at HTMLUnknownElement.callCallback (http://localhost:3000/static/js/bundle.js:15867:18) at Object.invokeGuardedCallbackDev (http://localhost:3000/static/js/bundle.js:15911:20) at invokeGuardedCallback (http://localhost:3000/static/js/bundle.js:15968:35) at beginWork$1 (http://localhost:3000/static/js/bundle.js:35832:11) ERROR Cannot read properties of null (reading 'nome') TypeError: Cannot read properties of null (reading 'nome') at http://localhost:3000/static/js/bundle.js:1694:32 at Array.map () at Favoritos (http://localhost:3000/static/js/bundle.js:1691:54) at renderWithHooks (http://localhost:3000/static/js/bundle.js:26271:22) at updateFunctionComponent (http://localhost:3000/static/js/bundle.js:29151:24) at beginWork (http://localhost:3000/static/js/bundle.js:30863:20) at beginWork$1 (http://localhost:3000/static/js/bundle.js:35810:18) at performUnitOfWork (http://localhost:3000/static/js/bundle.js:35080:16) at workLoopSync (http://localhost:3000/static/js/bundle.js:35003:9) at renderRootSync (http://localhost:3000/static/js/bundle.js:34976:11)

2 respostas

Oi, Jean, como vai?

Fiz algumas alterações no repositório e agora o projeto está funcionando corretamente tanto para inserir ou remover os arquivos na página de favoritos. Você pode acessar o repositório neste link.

Espero que dê tudo certo. Abraços!

Caso este post tenha lhe ajudado, por favor, marcar como solucionado ✓. Bons Estudos!

obrigado pela atenção. abraços