Category "node.js"

Nextjs: Cant render a component while using map over a array of objects. Objects are not valid as a React child

I dont know why when i want to render a component inside of a map function, basiclly i have a List component, and when i fetch data from an API with the email,

How do I check if the user is interacting with select menu and disable it in discord.js v13

I want that when the user is interacting with the select menu it should work and then it should disable it after a few seconds when the user stops interacting w

Html ReferenceError: document is not defined

My error = ReferenceError: document is not defined document.getElementsByClassName("text_status").innerHTML = 'hello' I am trying to change the text of an elem

Finding documents that fit json input in mongodb

I'm trying to do a write statement that finds all the documents that fit the JSON data fed through a form. Here's an example of what the JSON looks like. I crea

Receiving "unmatched pseudo-class :lang" after updating Angular

After updating node, I started receiving the following error: custom-file-input:lang(en)~.custom-file-label -> unmatched pseudo-class :lang I am not unders

how can I use node-canvas in electronjs-17 on windows?

I've installed all essentials for my windows to build application with electronjs. versions: node -v v17.5.0 npm -v 8.4.1 > My dependencies "dependencies"

TypeError: flatMap is not a function

I was trying to install parcel to run my own npm package but I get the following error when starting the HTML with parcel lib: TypeError: [(...previousDevDepReq

jsonWebtoken nodeJs wielding different results compared to https://jwt.io/

I'm trying to get a jsonWebtoken with jwt.sign(payload, secretOrPrivateKey, [options, callback]) but I just can't reproduce the same value which is created onli

Cannot run npm install on ubuntu

node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by node) Above is the error I get when running npm install on ubuntu. I have no

CSS Not Linking To HTML Replit

I am using replit to host a chat server using Node.js and Socket.io. I used the getting started guide provided by socket.io (https://socket.io/get-started/chat)

with put request data dosent update in ui without reload page

i have an issue .i am doing a project where want to update quantity of product.i am able to sending updated data to database with put request but my ui desent

Javascript merge objects with same property [duplicate]

I have an array of objects like this : const arr = [ {"id" : 1, "name" : "john", "age": 12, "fruits": "banana"}, {"id" : 2, "name" : "john

getting error trying to connect proxy to pupeteer

Im getting the error Error: net::ERR_TIMED_OUT at http://lumtest.com/myip.json const puppeteer = require('puppeteer'); (async () => { const browser = aw

converting one form of json into another form of json object using javascript / node js

here data1 and order of content get changed everytime that why I used switch statement I am running a function by passing value like this parser(values[key]);

what's differnce between push() and callback in nodejs Transform

i'm implementing a Transform stream which is piped by mongoose cursor (which works like readable stream, (or maybe it's real readable stream)) const myTransform

I am getting an error while installing Truffle on windows. Does anyone know how to fix this

This is the error I was getting while installing truffle through nom -g install truffle. Does someone knows how to fix this issue and also got error after insta

I am getting this error TypeError: Cannot assign to read only property 'map' of object '#<QueryCursor>' 2022-02-19T12:38:49.101286+00:00 app[web.1]:

I am trying to deploy my node.js app for weeks but I am not able to deploy it, Please can someone please help me to deploy this, I have done everything, but sti

Async child_process.exec with TypeScript

I'm trying to use a child_process.exec call with TypeScript, and error handling seems excessively hard to get right. Here's the gist of what I'm trying to do: i

The edge module has not been pre-compiled for node.js version v14.18.1. You must build a custom version of edge.node. getting this error

{ "name": "electron-js", "version": "0.0.0", "description": "ElectronJs", "main": "app.js", "scripts": { "start": "electron ." }, "author": { "name": "Ralph" },

pass variables from front to backend

i have a vue js project with front end and i have a field with variables that i want it when its changed it will go to backend and change there too any idea? th