MERN: Why am I getting a 404 when submitting a React form using createBrowserRouter and an action()?
I am submitting a form that adds book data to MongoDB. Using Thunder Client, I see the backend is working and the data is added to the database. When I submit my form in the frontend, using createBrowserRouter and an action(), I get a 404.
The form data is being captured, and as far as I can see, absolutely everything is in place. The data should be stored. I have tried for 2 days now and cannot get over this hump. I am hoping someone would look at the code and easily see where the issue is.
Can I save an image in ‘public’ folder using react?
I am studying MERN and my tutor has given me an assignment:
Store image given by user in the ‘public’ folder without the use of backend or database, just react.
I have:
Title: “Error: Cannot read properties of undefined (reading ‘tap’) when running ‘npm start’ for React app”
When I try to run my React app using npm start, I encounter the following error: “Cannot read properties of undefined (reading ‘tap’)”. This error prevents the app from starting properly.