Category "mern"

While deploy the MERN Stack at DigitalOcean error TextEncoder is not defined

My app works on development but gives Text Encoder error in production. When I run the Node index.js command, I get the error "TextEncoder is not defined". Erro

How to fix " Path is required ,ValidationError " ,Mongoose ,node

I have searched everywhere for this problem. but I cant find the correct way to fix it. help me to what is the problem. const router = require("express").Ro

why hashedPassword = await bcrypt.hash(this.password, salt) is not working?

I'm basically trying to just hash a password using bcrypt using async/await but nothing is working... next() is not working and it is not saving the data into t

React I have an endless loop rendering my edit component

I have two components. My dashbord-component, in which I am dispatching the getAllDropDownRessort, which triggers the findAll function in my dropdownRessortSlic

Routing is not working after createing of of react app in MERN app

I created a MERN app that has a node.js server. To host the website on Heroku first I have to create a build folder by it using npm run build. After that, I hav

does npm node-cache value can be set in one file and access in another

i am working on a nodejs app where i have to maintain an api token for 24hr and then refersh it, currently i am writing that token on json file in every update

eact Hook useEffect has a missing dependency: ' xyz '. Either include it or remove the dependency array

I'm trying to add infinite scroll to my page but it's only showing me the mongo data. and while running react it's showing me a warning that says:- "src\compone

Change github repo for deployed heroku project

I am looking to create a new portfolio. The current one is just using nodejs / express and the basics. It is already deployed on heroku. I would like to maintai

MERN Application - Problem with notifications and mapping array

I'm on a MERN stack to create a chat application. And when I'm trying to display notifications when there is a new message in another chatroom or a new PM I'm h

how to pass data from one page to another page in Next.js?

I am stuck with a problem with passing data from one page to another page in next.js as I am building a basic news application in which I am fetching get reques

TypeError: authJwt is not a function

I am doing an e-shop project using MERN stack in that I faced the above error app.js: const express = require("express"); const app = express(); const morgan

Heroku application crashed: at=error code=H10 desc=“App crashed” method=GET path=“/”

*I have been trying to upload my MERN app to Heroku and have been getting these error codes. The web application will run on my local host but the application i

Failed prop type: Invalid prop `errors` of type `string` supplied to `CreateProfile`, expected `object`

I am trying to create a profile for a user on login, after submitting the form I am getting the error as invalid props errors. As both my client and serv

Heroku and MongoDB Atlas - 5000ms Response time??? (MERN stack)

Have recently built a MERN stack application. For whatever reason I can't figure out, I'm getting a 5000ms response time and can't for the life of me figure out