I want to deploy my website to Heroku but I get the next error:
error fsevents@2.0.7: The platform "linux" is incompatible with this module.
error Found incompatible module.
I've already tried upgrading yarn, node but it didn't help. I use macOS…
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 requests from news api and I got results of 10 articles and I mapped them correctly but I want…
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 app from "./server.js"
import mongodb from "mongodb"
import dotenv from…
When trying to access the Login component of my MERN app on the production version, I get a series of the following type errors shown in this image:
My app (https://github.com/ahaq0/kumon_schedule) works perfectly fine locally and was working…
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.
import express from "express";
import bodyParser from…
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 nodejs, But unfortunately this error occurs. My…
Please help, I am getting this error
src/app/middlewares/authentication.ts:16:17 - error TS2339: Property 'user' does not exist on type 'Request>'.
16 req.user = user;
I have…
After running the install script, the server starts and serves a page displaying the same text after the 'Failed to compile line.'
I'm running Windows 10 and auto update just updated my pc today, right before I did the create-react-express…
I am new to web development and I have a hosting service on which I want to deploy my reactjs/node project. To deploy it previously, I had been simply uploading the build folder created from running npm run build. I have since added a connection to…
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 architecture pattern.
I currently have a diagram on our…
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 localhost but does not work on heroku i.e. the image is…
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 that. The data is in json format and completely…
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 = require('morgan');
const cookieParser =…
I've implemented a braintree using its documentation but, facing this error in the terminal.
it's showing that braintree.connect is not a function, but in the documentation it has been provided hard coded.
var gateway = braintree.connect({
…
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 I submit the form the browser just shows a CANNOT…