Questions tagged [mern]
MERN stands for Mongo, Express, React and NodeJS.
mern
3,592
questions
-2
votes
0
answers
20
views
Why res.clearCookie() is not working after deploying to vercel?
First of all, everything works fine when running on localhost.
However, after deploying the app to Vercel when the user tries to log out it should clear cookies with res.clearCookie() but it doesn't ...
0
votes
0
answers
12
views
Getting error while hosting MERN Project on AWS: .env file error
Upload the file on the aws ec2 instance using GitHub so after that I use pm2 to start the server file, but it shows an error that the server is running on an Undefined port and a mongodb error,
but ...
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, ...
-1
votes
0
answers
11
views
Backend error in MERN stack any one have solution? [closed]
node:internal/errors:496
ErrorCaptureStackTrace(err);
^
Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
at new NodeError (node:internal/errors:405:5)
at ...
-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,...
-1
votes
0
answers
19
views
nodemon app crashed - waiting for file changes before starting error in MERN project [closed]
I'm working on a MERN project with Nodemon. Unfortunately, when I tried to run it, it gave this error. I'll post the entire terminal output for clarification:
C:\Users\om\Desktop\React-Project\server\...
-4
votes
0
answers
44
views
After Running 'npn run server', this error arise [closed]
This Syntax Error is from vs-code terminal :
> return new RegExp(path, flags);
^
SyntaxError: Invalid regular expression: /^function asyncUtilWrap(\.\.\.args) {
const fnReturn = ...
0
votes
1
answer
11
views
Error while deploying MERN stack application on Vercel
I'm trying to host a MERN stack application with the following folder structure:
root
backend
server.js (entry)
other files
frontend
build
node_modules
package.json
.gitignore
other files
...
-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 ...
-2
votes
0
answers
18
views
Problem with Data fetching MERN and showing it on frontend screen [closed]
I was following along this tutorial to get started with MERN and have not been able to get over a problem that I'm facing.
[https://youtu.be/MEab_a19ZGk?si=lQEatLzCPJFlkMiE]
This is the video I've ...
-2
votes
0
answers
13
views
My domain is not accessible after i switch my DNS from Netlify to Hostinger VPS (MERN Project) [closed]
I initially had my DNS set up at Netlify coz previously i was just connecting it to my github repos and hosting the vite frontends wrapping them up around my domain, but then down the line i decided ...
0
votes
1
answer
29
views
What should my vercel.json config file to deploy my MERN stack given my current project folder organization?
I am trying to deploy my MERN stack on vercel but I can't get much documentation on what the vercel.config file should contain.
This is how my Vite (npm create vite@latest) MERN project is structured:
...
0
votes
0
answers
30
views
node and react axios 404
I kept getting 404 error in the console
login.js:25 Server responded with status code: 404 [email protected]:25"
the backend works fine itself but with react it keeps giving errors, I already ...
-3
votes
0
answers
45
views
Node is creating a school management system [closed]
I just want to ask a simple question can node js create a school management system that teacher can input user result and student can also check their result
and what are the technologies I can use ...
-1
votes
0
answers
27
views
Data not Saved In MongoDb
I'm having trouble inserting a purchased course by its course ID into the user's document in the MongoDB collection using Express.js and Mongoose. The insertion does not seem to be happening correctly,...