Questions tagged [mern]

MERN stands for Mongo, Express, React and NodeJS.

Similar technology stack to , replacing with .

3381 questions
0
votes
0 answers

mongooseserverselectionerror could not connect to any servers in your mongodb atlas cluster

I keep getting this error when I'm connected to college Wifi but when I go home and connect to my home wifi it works fine and no error I did everything Allow access from anywhere is active username and password are correct what is the problem whe…
0
votes
0 answers

How i can solve a reducer error like this...?

The error is: Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers. In ./reducers/carReducers.js: const initialData = { cars: ['a', 'b', 'c'] } const carReducers = (state…
saad
  • 1
0
votes
0 answers

How to set Cookie to localhost while google login

I'm using googleapi to login via google. I'm getting user details and it successfully saving to DB as i wanted. After getting user it should save cookie to localhost (which is frontend) and redirect to homepage But its not saving cookie to localhost…
folov55205
  • 25
  • 4
0
votes
1 answer

Node.js v18.13.0 [nodemon] app crashed - waiting for file changes before starting... - How can I fix it?

I'm trying to clone whatsapp.. I've done with frontend part.. but when I try to connect with mongodb and get & post a request through postman api... but my code is getting crashed. I'm using "type":"module" in package.json This is what i'm getting…
0
votes
1 answer

abort() from a request made by a function

I am trying to optimize my react code by fixing any memory leaks. For this i am using createAsyncThunk canceling-while-running. I am successful in implementing this using useEffect where I dispatch a reducer to request, when the component mounts and…
Roshan Shetty
  • 267
  • 1
  • 13
0
votes
1 answer

Server not functioning in mern heroku deployment

I have a semi successful deployment to heroku but the calls to the server are saying CONNECTION REFUSED and I can't figure it out. I can hit the route and it returns correctly in postman but not in production Below is the services file (the ones…
Isaiahm
  • 19
  • 4
0
votes
1 answer

Undefined function in React

I am having an error: Cannot read properties of undefined reading((Id)). const PostWidget = ({ postId, postUserId, name, description, location, picturePath, userPicturePath, likes, comments, }) => { const…
0
votes
0 answers

Why do express-validator errors also fire on request Too many requests with status 302 Found?

Express-validator errors when trying to request with Postman express-validator.[postman errors](https://i.stack.imgur.com/mRPnr.png) When you try to request from the social. a lot of requests are sent to the network with the code 302 Found socialnet…
Den
  • 11
  • 1
0
votes
0 answers

Can't Figure Out How to Deploy MERN Stack Application to Render. "Failed" After Build But No Error Given

Previous Heroku user here. I'm forced to try other deployment options due to Heroku removing their Free Tier a few months back. I've deployed a few MERN stack applications to Heroku in the past, but I'm having trouble figuring out how to deploy to…
Andrex
  • 229
  • 2
  • 16
0
votes
1 answer

I am trying to update my User schema in a "create profile" page after registering/logging in, but the data isn't showing up in MongoDB

Still learning MERN stack, so I followed along a YouTube tutorial and figured I'd add some additional features that wasn't covered. After registering, I want the user to be able to update information (like their first and last names, address, etc).…
0
votes
0 answers

Is there a solution for Cannot find module 'yallist' error

npm create-react-app login-and-register-app node:internal/modules/cjs/loader:995 const err = new Error(message); Error: Cannot find module 'yallist' Require…
0
votes
0 answers

unable to fix the lift side and and scroll right side in material UI

I am using material ui ,I want to fix the left side fix and right side scrollable but its not working.I am trying in this way.... Left-side box content
holoyo
  • 59
  • 5
0
votes
1 answer

I want to send JWT token to my backend in next-auth

I am using next js. I am using next-auth for authentication. it is a MERN stack project. Question: How can I get jwt token and send it to my backend using next-auth and axios. (session.jwt) is giving me undefined. here is my nextauth.js…
Sajib Hossain
  • 81
  • 2
  • 8
0
votes
1 answer

"Objects are not valid as a React child" react error

the data is not displayed by REACT and the following error is received: "Objects are not valid as a React child. If you meant to render a collection of children, use an array instead" The records from MongoDB collection are fetched and gathered in…
Toto
  • 13
  • 3
0
votes
1 answer

"Objects are not valid as a React child" error

the data is not displayed by REACT and the following error is received: "Objects are not valid as a React child. If you meant to render a collection of children, use an array instead" The records from MongoDB collection are fetched and gathered in…
Toto
  • 13
  • 3