#My code can't catch any errors and i don't know why

4 messages · Page 1 of 1 (latest)

mental holly
#

I'm following the Router 6 course, which consists of designing a Van rental website.

But there's a part (23 - Coding the Sad Path - Error handling) where Bob teaches how to catch errors inside a useEffect.

To simulate these errors Bob generates a problem in requesting information from all vans ("/api/vans"), inside the server.js file.

What is expected is that with this error, my code manages to catch the error within the try catch but that is not what happens and i dont know why. this_is_fine

My Repo Link: https://github.com/VicktorMS/VanLife-App

Setup to install repo:
1 - clone and npm i on terminal
2 - npm start && npm run dev on terminal

GitHub

Contribute to VicktorMS/VanLife-App development by creating an account on GitHub.

#

Some useful ScreenShots

barren gorge
mental holly