Category "node.js"

yarn start FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory

Receiving this error with yarn start I tried many solutions with this error through stakeoverflow using this link FATAL ERROR: Ineffective mark-compacts near h

Await component doesn't send OK

I would like to do a await message and list for my setWelcome but it does not send me Ok when I select in the Select menu and I do not know if it is good for th

Async/Await function failing

I'm trying to build a nodeJS script that pulls records from an Airtable base, bumps a UPC list up against the [UPC Item DB API][1], writes the product descripti

Stylelint wont mark errors in VSCode

VScode doesn't show me any stylint errors. package.json: ... "postcss": "^8.4.12", "postcss-scss": "^4.0.3", "stylelint": "^14.7.1", "stylel

npm shows vulnerabilities when installing firebase tools

I already installed node js and when I try to run npm install -g firebase-tools, it shows me this error, and it says run npm audit fix [#########.........] | re

execute next request once the execution of first request is completed in node

Let's assume I have an endpoint /print. Whenever a request is made to this endpoint, it executes a function printSomething(). While printSomething() is processi

How to merge multiple in index into single page applications

I have these two ReactDOM renders to merge into single ReactDOM, having difficulties in merging. ReactDOM.render( <Provider store={store}> <Brows

How do I fix cast error to object Id failed in mongoose?

I'm using passport js for google authentication and when I try going to login page I get this error "CastError: Cast to ObjectId failed for value "xxxxxxxx" (ty

discord.js check if user has permissions

I want a command that can only be used by people who have the ban permission current code: if(msg.member.guild.me.hasPermission('BAN_MEMBERS')) { msg.

Getting Missing Months

I am working on a project where I am trying to chart the number of monthly order that I have received. My current data for monthlyOrder is: [ { _id: { mon

How to save Pino logs in save fomatted by pino-pretty

first of all I thank you for the help. I want to save the pino-logs in a file (I go it) with the pretty-format. The pretty works successfully in terminal logs b

What does this error mean and how would I fix it: throw new TypeError('app.use() requires a middleware function')?

I am trying to create a login page and sign up page, my app.js gives me this error, I think it is the last line of this code. I can send you the other component

How to request a signature remotely from your own account in docusign with nodejs

I will try my best to explain my problem in as much depth as possible. My usecase: I want to request my user to sign a document that I will be sending to his/he

Unhandled error event and cannot read properties of null nodemon app crashed

[nodemon] starting `node app.js` Server started on port 3000 node:events:505 throw er; // Unhandled 'error' event ^ TypeError: Cannot read properti

Uncaught Error Error: Cannot find module 'express' [closed]

im trying to make a discord bot using discord.js it works but whenever i try hosting it i get (Uncaught Error Error: Cannot find module 'expre

Dynamodb scan on array of objects Filter Expression

I want to scan dynamodb using filter on product_id showing in below json of table. Can anybody explain how to do scanning using filter of product_id. Wants to s

browser won't load css stylesheet for my local website using express and node

And the app.js screenshot: I tried every possible combination of href and express.static(""); adresses. I either get a response from a browser saying browser

Typescript compiles successfully but node cannot find module

Node error Error: Cannot find module 'hello' even though Typescript compiled successfully. Dir structure (note this is almost identical to tsconfig docs for bas

How to update and delete a review of a product using nodejs

I am creating a e-commerce app and now I want to update and delete a review of a product using nodejs and database is mongoDB (using mongoose). This is my User

Babel (expo) avoid compiling some dev only packages

Currently I have to use some cookie jar to make axios work in jest. axios.defaults.headers.post['Content-Type'] = 'application/json' axios.defaults.headers.comm