Problem with useReducer when using Vite instead of create-react-app
for vite I suggest to use this code: https://github.com/basir/ts-mern-amazona/blob/main/frontend/src/main.tsx#L17
Answer
for vite I suggest to use this code: https://github.com/basir/ts-mern-amazona/blob/main/frontend/src/main.tsx#L17
I already answered this question in this post please search before asking questions. https://codingwithbasir.com/question/issue-with-use-logger-reducer/
The admin email and password exist in the data.js here: https://github.com/basir/mern-amazona/blob/master/backend/data.js#L7
you need to remove cookies first then make sure that you are reading products from the database. IDs of product in the database is not like 1, 2 or 3…
When you get this error, it means that your token is expired or you are setting invalid data in token here: https://github.com/basir/mern-amazona/blob/master/backend/utils.js#L12 and https://github.com/basir/mern-amazona/blob/master/backend/utils.js#L29 try relogin please in your web…
The error in the question is not about backend. is just about having wrong, jsx expression, and having ancher inside ancher. for mongo DB issues. You need to share your…
It means you did not get the products from the backend so you need to share your Terminal logs and chrome console log here.
You need to share the chrome dev tools console log to take a look.
the error is here: npm ERR! peer react@"^16.8" from [email protected] use-reducer-logger is deprecated run npm uninstall use-reducer-logger and remove all usage of use-reducer-logger in the code to fix the issue.
Hello there share the screenshot of the error to take a look