Reactjs – Storing image data in MongoDB
I am new to MERN stack and am trying to create a helpdesk ticketing system for IT department of a company. I want to allow the user to be able to add a new ticket and view all previous tickets…
I am new to MERN stack and am trying to create a helpdesk ticketing system for IT department of a company. I want to allow the user to be able to add a new ticket and view all previous tickets…
Cannot read properties of undefined (reading '_id') TypeError: Cannot read properties of undefined (reading '_id') this is my App.js file function App() { const [todos, setTodos] = useState([]); const [popupActive, setPopupActive] = useState(false); const [newTodo, setNewTodo] = useState(""); useEffect(() =>…
I have built a Fullstack MERN application with my backend hosted on render.com and I am trying to connect my front end to this backend using API calls. When I run the react project locally using npm start on localhost,…
I am trying to render a trip object in an EJS template, but, I am getting the error "ReferenceError: trip is not defined." I have passed the trip object to the EJS template as a parameter, and I have checked…
I am a beginner in MERN stack. I am just stuck at one place and it has been hours I cant solve it. Issue: When I press view users button in landing page, it takes me to view page where…
I'm encountering an issue when making a POST request to the /api/notes/addnote endpoint. The server responds with a 404 Not Found error. I have checked the server-side code and verified that the endpoint is correctly defined. Here are the details…
Mongoose can't find matching document with id when copying data from one collection to another. I have a site where a user searches for a class in a Mongo DB collection called classes. Once it finds the class (which works),…
Actually in my navbar I want to show login and logout at a time. And when it shows logout and If user Click on that then It should work accordingly . But is is not working properly. Rather it is…
I am trying to get a attribute input for the label tag while rendering the component. Using props to do this but its giving the following error- Cannot read properties of undefined (reading 'props') TypeError: Cannot read properties of undefined…
Here's the document of mongodb: { _id: new ObjectId("646fa9b33e467de3f38b2418"), price: 3500, orderConfirmation: false, dateConfirmationOrder: null, dateDelivered: null, clothID: '6450c20d7fd78c92313cd348', clientName: 'irtaza', clientNumber: 3320523524, desc: '11', address: 'Ahsan road, kala gujran, jhelum', marketerPayment: 200, marketerPaymentStatus: false, quantity: 1, deliveryStatus: false, marketerid:…