Questions tagged [mern]

MERN stands for Mongo, Express, React and NodeJS.

Similar technology stack to , replacing with .

3381 questions
0
votes
1 answer

vite Internal server error: Unable to parse HTML; parse5 error code missing-whitespace-between-attributes

I created a vite using tailwindcss project and ran npm run dev This is the error message from my terminal enter image description here this is the index.html
0
votes
1 answer

Error in installing 'nodemon' using 'npm'

I recently started working with 'npm' and while installing 'nodemon' using command - npm i -g nodemon but it is showing ERR! npm ERR! code EACCES npm ERR! syscall rename npm ERR! path /usr/local/lib/node_modules/nodemon npm ERR! dest…
0
votes
0 answers

React component won't set state

I have an EditProfile functional component that initially loads perfect, but loses state whenever the user refreshes their page with the form open. Instead of pre-filling the inputs with the 'user' state/values, it now sets the inputs as blank, and…
curtis
  • 17
  • 4
0
votes
0 answers

Stay logged in on refresh, JWT

On my website switching between pages is completely fine and works (it doesnt refresh or load due to redux) but the moment the page is refreshed or i manually enter a link to access, it logs me out. Also it just started happening now, yesterday when…
rrrha
  • 1
0
votes
2 answers

How can I create a MERN Stack application?

Ok, so my question is actually a bit more complex. I know how to develop Node.js apps using Express.js. I also know how to build React apps. The problem is putting it together. I've seen many tutorials do it, but they just use the Express backend as…
Marc
  • 5
  • 1
0
votes
1 answer

Filter method in MongoDB with optional fields

I want to write a method in node js with mongodb that filters users by both batch and course 2)only batch if course not enterted 3)only course if batch not enterted //filter students by either course or batch export const getUsersByCourseOrBatch…
0
votes
0 answers

Adding external script to frontend in mern app

Project folder structure: backend/ frontend/ node_modules/ .env .gitignore package-lock.json package.json I have this snippet that I would like to add to my frontend (which is created with create-react-app):