Questions tagged [mern]
MERN stands for Mongo, Express, React and NodeJS.
mern
3,586
questions
0
votes
0
answers
10
views
CORS Error Response to preflight request doesn't pass access control check: It does not have HTTP ok status
Hello i've been developing a MERN app, instead of MongoDB is MySQL, so its MySQl ERN app.
My site is a simple blog, post blogs with a name, and the content of the blog.
So i implemented CORS while ...
-2
votes
0
answers
11
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
21
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
29
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 ...
-2
votes
0
answers
23
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
26
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,...
0
votes
0
answers
27
views
Hello Everyone ! i want to connect webSocket to my mern app but getting some error
i am working on realtime chat-app ... want to integrate websocket for instance chat ... but i am getting the error i am getting this kind of error (socket__io-client.js?v=6fe409f1:1018 WebSocket ...
0
votes
0
answers
21
views
How to render filtered messages?
I'm working on a real-time chat project but I'm having issues rendering the filteredMessages when a user searches for a term in their conversation. The messages are correctly filtered when I right the ...
-1
votes
1
answer
36
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
12
views
How to resolve this MongoDb atlas related problem that is coming in my vs code terminal
OJ PROJECT 3\backend>node server.js
(node:23356) [MONGODB DRIVER] Warning: useNewUrlParser is a deprecated option: useNewUrlParser has no effect since Node.js Driver version 4.0.0 and will be ...
-1
votes
2
answers
26
views
index js code appears on the home page in vercel deployment
I am working on an ecommerce app using mern stack.
I tried deploying it on vercel but for some reason the homepage shows the index js code and no other routes work, neither the api routes nor the ...
-4
votes
0
answers
27
views
Should I switch from WordPress to MERN, Laravel, Vue, Angular, or PHP? [closed]
I have been working as a WordPress developer for over 1 year, specializing in website design, theme customization, speed optimization, and plugin updates. My service includes E-commerce website, ...
0
votes
0
answers
42
views
MERN backend not working on other computers after deploying
I deployed my MERN stack app on Render. It's a flight management app and when I go to the website on my computer, I'm able to add new flight information and it displays it on the homepage. When I open ...
1
vote
0
answers
26
views
CORS error showing even when the backend access control allow origin is set for frontend url after deployment on vercel
I have deployed my mern app's frontend and backend on vercel on 2 different url's.
For backend i have set :
app.use(cors({credentials : true , origin : 'https://music-app-client-five.vercel.app'}));
...
-1
votes
0
answers
18
views
Track is showing {} inside useEffect for my PlayerContext in React
I am building a spotify-clone , inside which the player i am building is using Player context.
Everything is working fine , but i am not able to set up the functionality of playing next song when ...