Category "node.js"

React-map-gl with mapbox on NodeJS map -- map is not showing up

I was following a youtube tutorial and followed the steps exactly, however, my map does not seem to work. I get a blank screen even when I put my own access tok

Error while reloading nextjs server while using mongoose [duplicate]

I am using NextJS as my framework along with Mongoose. I have seen a few tutorials to implement caching for Mongoose but everytime I make some

graphql mutation giving error while creating record

here is my scheme, I wasnt to create one record so when i am passing field in graphql it is showing error const { BookTC } = require("../model/book"); const { B

How to query to get n level depth nodes in neo4j

I want to write a query that will fetch the ciphers(nodes) along with its child nodes to the n-level. e.g. if any child is having 1 child node and that child n

Not able to send files data from front-end (react.js) to back-end (node)

I have an application that stores to its state files' content, whether images, audio or both, as shown here with the mediaAudio object key: In my react.js code

npm ejs install error: 5 vulnerabilities (1 low, 4 critical)

I was trying to download EJS and i got this error: npm WARN deprecated [email protected]: Deprecated, use jstransformer npm WARN deprecated [email protected].

Localhost refused to connect in Visual Studio code

Im working on a node.js file and when I run the API I get a ERR_CONNECTION_REFUSED error on chrome.The Error Page

how to update older node project with ts and js scripts

What should I do if I want to run an older node.js project from GitHub? Eg. project: jaystack odata-v4-server-mysql-example (6 years old, at that time, node.js

Schema for saving a lot of questions MongoDb

If I have a survey application for child tracking what is the best way to save survey questions in MongoDB? Knowing that survey is divided into stages (about 12

How to add random minutes like first slots should be 30 minutes and then 1 of 15 minute slot and again 30 minute slot

const eventClick = (args) => { let StartTime = moment(args?.event?.StartTime, 'HH:mm ') let EndTime = moment(args?.event?.EndTime, 'HH:mm ') if (

why ejs displays file.forEach is not a function

I have the following error TypeError: C:\Users\USER PC\Documents\Prime_News_Hub\views\Top_Stories.ejs:27 25| 26| <% if(file){ %>

Next auth getSession with typescript

I am using next-auth getSession in API routes like this const mySession = await getSession({ req }); I am certain that the type of the mySession is this type S

How to add the value passed in the view to a href attribute in a pug view

Here is the function passing the data to the view I don't understand what i am doing wrong that i receive an error at this line when the view is loaded a(href="

Nodejs concatenating numbers as a string

This function is triggered on button click nextPage() { this.tweets = [] this.$route.query.page += 1 this.getTweets() }, What it's doing is resetting arr

code ERESOLVE when running the command npm install

I'm new to ReactJS and tried to run a code in VS Code using npm install command and this error pops up: npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resol

Mock 'S3' feature of 'aws-sdk' (nodeJS and Jest)

I need to test a file in charge of retrieving data from S3 through the 'aws-sdk' (nodeJs + Jest). The file is: const AWS = require('aws-sdk'); let S3 = null;

How can I pass in an unknown amount of objects in a dynamic react form to my sql database?

I'm having trouble connecting 0-6 dynamically rendered form elements to the backend/database using react. Perhaps the way I'm attempting to do this is not suppo

Using Auth0 with NestJS on gRPC Methods

I am trying to implement NestJS Guards for Authentication and Authorization to my gRPC Services, which are implemented in NestJS. @GrpcMethod(USER_SERVICE_NAME,

Laravel Mix HMR Server Does Not Launch

Laravel Mix Version: 6.0.43 Node Version (node -v): 16.13.1 NPM Version (npm -v): 8.1.2 OS: Windows 10 21h2 Description: THIS IS HAPPENING ON A FRESH NEW INSTAL

How do I copy to clipboard using clipboardy?

I am trying to use clipboard in order to copy 'longlat' to the clipboard by passing it through the function 'copyData()'. However, it keeps giving me errors. Th