All Questions
3,812
questions
-1
votes
0
answers
13
views
Having issues with a messenger clone
So everything was working fine until I decided to add a header component to my messenger clone.This specific problem has returned null and crashed my application like 5-6 times. Can anyone help why ...
0
votes
0
answers
24
views
What can cause Playwright to duplicate an action?
I'm writing tests for a small MERN stack blogging application as part of an online course I'm following along with. I've written a few Playwright tests for the user log in, and blog creation. However, ...
0
votes
0
answers
33
views
React / API route is unable to post the form data
I have an Add Product form. In this form, there is an Upload Image field to upload jpg and png from your computer. Anyway it doesn't work and products get uploaded without image. My aim is to convert ...
-2
votes
0
answers
46
views
Error: Objects are not valid as a React child (found: object with keys {message}). If you meant to render a collection of children, use an array [closed]
I'm not able to solve the problem even after reading several related posts.
Basically, I'm trying to post some data from my React app to MongoDB using axios. However, it seems the data format is ...
-3
votes
0
answers
19
views
How do i fetch data and display in MERN? [closed]
What are the steps to be followed? What are the packages that need to be installed? I am also willing to share my codes if needed.
I tried using Axios and Cors.
This is my JSX code.
import { useEffect,...
-2
votes
0
answers
8
views
How to Create Separate MongoDB Databases for Each Admin User and Manage Connection Strings in a MERN Stack Application [closed]
I am currently working on an inventory management system using the MERN stack (MongoDB, Express.js, React.js, Node.js). I have a requirement to create a separate MongoDB database for each admin user ...
0
votes
1
answer
28
views
Post request working fine in Postman but not in browser
When sending SignUp and Login data through Postman, it's getting stored in Mongodb as well as showing success message but when requested through React axios, it is showing error in console as
POST ...
1
vote
1
answer
49
views
Handling Form Data and User Registration in MERN Stack: Issues with FormData and Validation
I am working on a MERN stack application and I'm having trouble registering a new user. I have a form on the frontend that collects user data and sends it to the backend. The form data includes fields ...
-1
votes
1
answer
37
views
How to remove data from mongo dab using $pull operator
i am new in the field mern stack and i want your help to remove to remove comment from User data which is equal to Post data comment
Post Data: {
_id: new ObjectId('66985b5774dd3a87fd1be9d4'),
...
0
votes
0
answers
24
views
Get MongoDB Stream Real Time data in the front facing
I am trying to get the my MongoDB Atlas changes updated in real time in the front user facing. I am trying to implement the Mongo Change Stream functions. I am able to get the changes in my file but ...
0
votes
1
answer
39
views
Session Not Stored In Express
I am creating a React app with Express as the backend and using MongoStore to store the session data. When I log in to Cloud Mongo in Atlas, I can see a session being created and my variable is stored....
2
votes
1
answer
40
views
Why does my component's values not change even when i am re-rendering the same component but with different values? Could it be due to Nextjs caching?
I am not sure if i explained it properly on the title but here is an explanation.
I am creating a habit tracker, this habit tracker allows users to create their own habits which gets stored in a ...
1
vote
1
answer
90
views
TypeError: Cannot read properties of undefined (reading 'collection') (mongodb connection)
am trying to connect the mongodb database and i get the error as shown below
It gives me error
TypeError: Cannot read properties of undefined (reading 'collection')
at C:\Users\Joh\Desktop\...
0
votes
0
answers
85
views
The edge runtime does not support Node.js 'crypto' module error while adding mongoClient in Auth Js (Next js)
I have implemented auth js in the next js project. I also split the config like, auth.js and auth.config.js.
Now for the signIn functionality, if I add mongoClient to my auth.config.js, I am getting ...
-1
votes
1
answer
35
views
I want to filter certain dates in MongoDB and React
In this code, I am helping a company with the filters and I specifically have a struggle filtering out by the date type. Here is the order Router for the local SAP orders and specifically look at the ...