mern Questions
7
I am new to testing and I was trying to use vitest for testing my mern social media app. looking for references to test a react component using vitest i found this article https://eternaldev.com/bl...
Forklift asked 7/8, 2023 at 18:6
6
Uncaught runtime errors:
ERROR
> Cannot redefine property: googletag TypeError: Cannot redefine
> property: googletag
> at Function.defineProperty (<anonymous>)
> at <anonymou...
Anglicize asked 4/3 at 18:1
4
Solved
MongooseError: Cannot populate path loaned_to because it is not in your schema. Set the strictPopulate option to false to override.
I've tried to join two documents in mongodb using mongoose in nod...
1
I am a part of a project that is using the MERN stack and need info on how to structure my system architecture diagram. I am unsure whether MERN is a MVC, layered, client-server, or other architect...
Helices asked 4/2, 2020 at 20:40
4
Okay, so I was following a MERN stack tutorial and the tutor wrote out some lines of code but didn't really explain them well. this is the code:
const path = require("path");
const { file...
5
I'm trying to set up some security middleware for my humble little MERN web app, and I'm currently using helmet and express-mongo-sanitize, specifically for protection against NoSQL injection attac...
Intended asked 22/8, 2021 at 2:25
3
Solved
I'm trying to hide a sidebar component from showing when a user visits the signup or login page. In react-router-dom version 5, we could use a div tag inside the Switch but it has been replaced wit...
Merimerida asked 10/12, 2021 at 6:47
6
Please help, I am getting this error
src/app/middlewares/authentication.ts:16:17 - error TS2339: Property 'user' does not exist on type 'Request<ParamsDictionary, any, any, ParsedQs, Record<s...
Apollyon asked 22/1, 2021 at 15:54
8
I get the error "MongoParseError: options poolsize, usenewurlparse are not supported" when I run "nodemon server".
Here the code for setting up the mongodb connection:
import ap...
1
Solved
Trying to install mongodb server on my mac using Brew but getting this error.
Updated my brew to latest version, still getting this error.
Command i used:
brew install [email protected]
Proximate asked 23/12, 2022 at 14:28
1
I keep getting the following error when I proceed to run a workflow:
Run npm test
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path /home/runner/work/armoire/armoire/package.json
npm ERR! er...
Folketing asked 12/11, 2022 at 17:27
3
Solved
Please help solve this problem.
I am working with a MERN app.
In the app, I upload images to the cloudnary using the API.
Then I upload the image on the frontend using secure_url.
It works on local...
Nightfall asked 13/1, 2022 at 11:32
3
Solved
I accidently run a command in my Mern project that ' npm un dev' instead of 'npm run dev' and it delete some packages and i don't know how to recover these packages.
Factorage asked 19/8, 2022 at 17:58
3
Solved
Data is not sent using axios to backend in react and Unsupported protocol localhost: axoos is thrown
I am using express js as backend and also have added proxy of backend in the package.json of react js. Before it used to throw an error with fetch method and moved to the axios method to prevent th...
Asia asked 29/7, 2022 at 12:22
1
Solved
I have a Navbar component in my React app which shows a Sidebar component when screen is small. I used Material UI for the Drawer for displaying the sidebar.
My issue is, on clicking the hamburger ...
Paradrop asked 14/7, 2022 at 15:8
1
Solved
I've a simple app built on redux-toolkit. I am dispatching createProduct actions which is working fine. I want to navigate to /products/ page form /products/new page after createProduct action. How...
Jeffrey asked 23/3, 2022 at 6:22
1
I have a simple MERN APP, that works fine on localhost, but when I deploy it to Heroku I see a page with this error:
Application error An error occurred in the application and your page
could not ...
Ultraconservative asked 5/1, 2022 at 15:22
3
I want to deploy my website to Heroku but I get the next error:
error [email protected]: The platform "linux" is incompatible with this module.
error Found incompatible module.
I've already...
5
I'm working on a project with the MERN (MongoDB, Express, React, Node) stack and I'm having issues when posting data from a form within a React component to an API endpoint defined in Node.js. When...
2
I am new to MERN stack and I am following MERN stack tutorial on YouTube. I got an error on Mongoose.
Error: `useFindAndModify` is an invalid option
I couldn't find any solution to that.
im...
Fredra asked 2/9, 2021 at 13:11
1
Solved
I am trying to push a MERN stack repository on my GitHub but the client folder is saved as a shortcut, I have tried deleting the git folder inside the client but still it won't work
What I have tr...
Erysipelas asked 13/8, 2021 at 6:15
5
Solved
I have a React app, I'm trying to add a NavBar there like this
<ul id="dropdown1" className="dropdown-content">
<li><NavLink to="/create">Create les...
Pheni asked 13/4, 2021 at 9:4
1
Solved
I am in the process of deploying my MERN app to a Digital Ocean droplet(Ubuntu 20.04 server).
I have cloned my GitHub repo, installed the dependencies and pm2.
I start the server using the command ...
Ameliaamelie asked 29/3, 2021 at 17:24
3
Case 1:
const [present, setPresent] = useState([]);
useEffect(() => {
for (var j = 1; j <= totalPeriod; j++) {
setPresent([
...present,
{
period: j,
present: true,
},
]);
}
...
Tymon asked 10/3, 2021 at 7:18
1
Solved
I have hosted my MERN app on Heroku , but whenever I implement helmet in app.js file it's causing this issue.
const path = require('path');
const express = require('express');
const morgan = requir...
1 Next >
© 2022 - 2024 — McMap. All rights reserved.