Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
6 views

What is the (smallest) setup to allow import to be used by Jest?

I'm having trouble running a module test in Node. I don't have an existing project, and I can't find one that has tests using import statements. In Jest's Getting Started guide, there is a line that ...
Stephen's user avatar
  • 19.8k
0 votes
0 answers
6 views

Twilio serverless function async operations execute order problem

What I'm trying to do: Incoming call from user would trigger a Digits Gather (No problem) After receiving the Digits, Say something to the user Play music while fetching phone number from an API ...
Slodin's user avatar
  • 89
0 votes
0 answers
11 views

Stripe subscription with free trial

I create a Stripe subscription with a trial period, but at the end of the period, my subscription is canceled because of 3DS. Frontend: I am creating a payment method => const { error, ...
Akuseru_w's user avatar
-3 votes
0 answers
21 views

Saving gmail draft using imapflow with node.js3913477546962 [closed]

I'm working with imapflow in Node.js to save a draft in Gmail. I’m using OAuth2.0 for authentication, and everything works fine – I’m able to retrieve emails from the inbox. However, I’m having ...
Riku Tanaka's user avatar
0 votes
0 answers
6 views

MongoDB CSFLE required keyword is only allowed with a remote schema

I'm using MongoDB's CSFLE along with schema validators. I'm getting the error TypeError: csfle "analyze_query" failed: JSON schema keyword 'required' is only allowed with a remote schema [...
Zack's user avatar
  • 71
0 votes
0 answers
11 views

how to block a merge request if the unit test coverage is less than 85% in gitlab

I have a node package Jest is the testing library Hosted on gitlab What I have tried. Extracting the coverage percentage from coverage/unit/lcov-report/index.html file with a regex. I am not able to ...
Bear Bile Farming is Torture's user avatar
-1 votes
0 answers
7 views

Course content not reaching my node controller backend

I am currently working on a course platform. At the point of listing new courses, every information about the course gets to my courseController backend except the course content which is either a ...
SwiftDev's user avatar
0 votes
0 answers
7 views

Webpack: Module not found: Error: Can't resolve <node.js-package>

I am trying to package my first vscode extension that I have tested under debugger. In package.json, in scripts list, I have added the line "package": "webpack --mode production --...
PCh's user avatar
  • 153
0 votes
0 answers
13 views

**npm ERR! Unsupported URL Type "node:" during package installation**

Description: I’m encountering an error while trying to install npm packages in my Node.js project. Here’s the setup and the error message I receive: Setup: I have a script that performs the following ...
xKame12's user avatar
0 votes
0 answers
7 views

What are the AWS services to use to deploy a react app with nodejs server and dynamoDB [To attain least cost, performance can be average]

I'm trying to deploy a web app on AWS with the least cost to run everyday reactJS nodeJS dynamoDB [To attain least cost, performance can be average], Please try to suggest more than 1 stack of ...
vishwa's user avatar
  • 74
0 votes
0 answers
18 views

How to send emails from Microsoft Workspace Email without disabling security defaults?

I have a simple sendMail function that is supposed to send emails from my Microsoft workspace email through a Node.js backend. async function sendMail() { const transporter = nodemailer....
Schnitzler's user avatar
-1 votes
0 answers
10 views

execute ffmpeg -version hit error by NodeJS but not with docker

The background is that I am using puppeteer.screencast to record screen. puppeteer.screencast requires you to install ffmpeg as a dependency. I was requested to only install ffmpeg for lambda ...
CataCaster's user avatar
0 votes
0 answers
10 views

Can't send text message on USB GSM modem over 30 characters CMS 69 error Node JS

I'm trying to send a text message on a USB GSM modem connected to my computer. I've got a few SIM cards, some are PAYG, others are Pay monthly. Regardless of the SIM, both can send a text message ...
Ryan H's user avatar
  • 2,866
0 votes
0 answers
10 views

keep getting 401 while trying to implement auth0 with nestjs

Im trying to setup auth0 with nestjs without any success. my stack is: react and nestjs. So i managed to login from the frontend and get the access token. In my nestjs application i have the following ...
Nir Berko's user avatar
  • 1,418
0 votes
0 answers
14 views

How to avoid delay with node-oracledb getRows()?

We are trying to execute stored procedure from typescript. SP itself takes around 30 seconds and unfortunately we can't improve it. However, we found that below statement - const rows = await outbinds....
Ranjeet's user avatar
  • 353
0 votes
0 answers
20 views

MongoDB Aggregation to calculate total revenue by each store for each month

I have a collection named sales with documents structured as follows:- { "_id": ObjectId("..."), "date": ISODate("2024-06-15T00:00:00Z"), "store": &...
JS Noob's user avatar
-1 votes
0 answers
20 views

tsconfig's target option seems to weird

My tsconfig.json code is below { "compilerOptions": { "target": "ES5", "lib": ["ES5"] "module": "commonjs", &...
HDHD's user avatar
  • 1
0 votes
0 answers
6 views

TypeORM migration not being created in the specified directory

I am using typeorm cli to generate migrations but the migrations are being created in the root directory as opposed to the directory specified in the configuration file. I have the following ...
Mahdu's user avatar
  • 3
0 votes
0 answers
9 views

Why this Framer Motion Animation is not working and why is ain't getting triggered?

import React, { useCallback, useEffect, useState } from "react"; import UsersContainer from "./UsersContainer"; import { motion, useAnimation } from "framer-motion"; ...
MR. WOLF's user avatar
0 votes
0 answers
5 views

How to set graph background on amchart 5?

I'm working on a Angular project where I'm using Amchart 5 library to implement a Line graph chart, here I want to set the background of the chart as we can see from the image attached I tried ...
Saurabh's user avatar
  • 81
0 votes
0 answers
5 views

Encountering an ERR_BAD_REQUEST error when trying to use the Outlook Calendar API

I have created an application in app registration in Azure admin exchange, and i am trying to use the Outlook APIs, using the clinetid, tenant id and secret key, But i am getting ERR_BAD_REQUEST error ...
jithin jay's user avatar
0 votes
0 answers
16 views

Variable not accessible in navbar.ejs after connecting MongoDB online database

I am working on an Airbnb-like project using Express.js. Initially, everything worked fine, including passing variables to navbar.ejs using middleware. However, after connecting to an online MongoDB ...
SHLOK MANTRI's user avatar
-1 votes
1 answer
14 views

React App & Express Server: Browser not saving session cookies when making login request

I know there are a number of questions posted around this and I have read through those, but I cannot seem to solve this issue. The Set Up I have my react app running on localhost:3000. My Express ...
kiernanh's user avatar
0 votes
0 answers
14 views

No such key error ListObjectsV2Command AWS S3

I need to get the list of the logs that are stored on AWS S3 (spases object storage digital ocean), path is correct, and file listing is enabled, but I am getting such error: Error listing files: ...
Illia Kroshka's user avatar
0 votes
0 answers
13 views

can't get connection in Sqlite with capacitor

I need some help, please. I am using SQLite with the Capacitor plugin in IONIC with Angular. It turns out that during the initial configuration of my application, I create the tables in the database. ...
AlJw's user avatar
  • 71
0 votes
0 answers
11 views

Tailwind configuration with the react does not work [Specified input file ./src/input.css does not exist.]

I followed this instruction to configure react with tailwind css tailwind docs Node.js v22.1.0 PS D:\vscode\my-project> npx tailwindcss -i ./src/input.css -o ./src/output.css --watch Specified ...
Hash's user avatar
  • 1
-2 votes
0 answers
18 views

How to Implement Group Management Features in a Web Application [closed]

I'm working on a web application where I need to implement group management features. The requirements are as follows: Add People to Create Groups: Users should be able to create groups by adding ...
S O H A M I A M's user avatar
0 votes
0 answers
7 views

I am bundling nodejs application as a single executable. How can I set it up as a service on Windows?

I was using NSSM for setting up my nodejs application as a service on Windows. However, NSSM is not developed or maintained any more. What can I use to replace NSSM. I have explored pm2 but it seems I ...
Rajeev Shukla's user avatar
-2 votes
0 answers
27 views

I want to display each item in individual div element but how do I create div elements? [closed]

Display items of an array in html div, the divs are to be created by JavaScript
Dev Mathew 's user avatar
0 votes
0 answers
7 views

Expo Error: Could not connect to the server. exp://127.0.0:8081

I am just trying to get started in app development and I have spent hours on trying to get my setup to work. I created a project. Initialized it via npx create-expo-app@latest ./ Upon running npm ...
Reyan Tariq's user avatar
-1 votes
0 answers
20 views

POST request changes to GET [closed]

I'm testing the api through postman and when I make a POST request, the api changes to GET causing a 404 not found error. But other api's work normally. This also happens with insomnia, but with curl ...
Luka Martins's user avatar
0 votes
0 answers
16 views

Why does buffers in Node.js only take memory when they are filled not when they are allocated

Sorry if this question my seem stupid , started learning about buffers and wanted to experiment with them in Node.js , Basically my question is , why doesnt the process doesnt take 5gb when i allocate ...
Nadjib Brinis's user avatar
0 votes
1 answer
20 views

Why are chunks sent from Node.js using Sever-Sent Events / Chunked Transfer Encoding different in size when sent and received?

I am streaming some data using Node.js / Express.js Server-Sent Events: app.get('/', async (req, res) => { // Implementaiton detail doesn't matter, writing some pieces over some period of time ...
goose_lake's user avatar
  • 1,302
0 votes
0 answers
26 views

Old Iteration of index.html Loading Over New

Every time I try to redeploy to my site and make changes to my index.html it shows the new version for a split second and then loads the old version. Here is a list of things I have done to fix it but ...
user27256800's user avatar
0 votes
0 answers
15 views

Rollup.js is trying to access "*.css?inline"

I apologize if this is a dumb question as I am not a web developer. I am trying to use rollup.js to bundle a web components pack to use inside WebIQ. When building with rollup -c --bundleConfigAsCjs ...
Ian Noriega Nuñez's user avatar
0 votes
1 answer
30 views

I can't use MQTT.js node package with CDN

I installed mosquitto at the following path: C:\Program Files\mosquitto Then I launched it with the following command: mosquitto.exe Then I wrote the following code on the "test.html" file....
nix86's user avatar
  • 2,987
2 votes
1 answer
33 views

Autocomplete via infer not working as expected

I want to incrementally build a functionality that works as follows: import commands from "./commands" const command = commands.builder().withOption("option1").withOption("...
Tanay Ghirnikar's user avatar
0 votes
1 answer
11 views

"module not found error" with twilio serverless deploy

I have been facing module not found error while trying to deploy my nodejs app using twilio serverless. Here is my nodejs application folder structure: functions ├── chunk_text.js ├── gpt_handler.js ├─...
Rahul Poddar's user avatar
0 votes
0 answers
22 views

Alternative to new RegExp in javascript to resolve ReDos

is it possible to write same function without using new RegExp as it is give ReDos vulnerability function extractNum(dataList) { let resp = [] dataList.forEach((i) => { let regex = ...
Tech Learn's user avatar
-4 votes
0 answers
21 views

setting jwt token in the cookie on the live website

this is my code for creating token and its returning token import jwt from "jsonwebtoken"; const generateToken = (userId) => { console.log("creating token") const token ...
clashing zone's user avatar
1 vote
0 answers
27 views

Converting SVG with external images to PNG using Sharp in Node

I am trying to convert an SVG to PNG using Sharp in NodeJs. I have the following code export const convertSvgToPng = async (svgCode: string) => { try { // Convert the SVG code to a PNG buffer ...
Muhammad Junaid's user avatar
1 vote
0 answers
21 views

Stuck messages in RabbitMQ queue

I have been using RabbitMQ for some time, and recently there has been multiple issues with stuck messages in my queue. I have a RabbitMQ container deployed in AWS (not managed), and in my node backend ...
lior shein's user avatar
0 votes
0 answers
11 views

Electron React App with Express Backend Works in Development but Not After Build (Requests Pending)

I built an Electron app using React and bundled it with Webpack. The backend is built using Express.js, and during development (npm start), everything works perfectly—the backend starts and handles ...
Oussama's user avatar
  • 31
-1 votes
0 answers
34 views

How to reset default socket host URL?

I am using nodejs to build a socket connection. Code - const socketIO = require('socket.io'); let io; const usersInRoom = {}; // Object to keep track of users in rooms const initializeSocket = (...
Ankit Kumar's user avatar
0 votes
1 answer
32 views

Avoiding Extra slice() in Bubble Sort While Keeping Functional Immutability

I'm working with TypeScript that follows functional programming principles, meaning I want to keep immutability and avoid mutating any of the input arrays. I'm using bubble sort, and I have an issue ...
Tom Fan's user avatar
  • 512
0 votes
1 answer
29 views

How can I fix this node.js error when running Telegram bot?

I wanted to make a Telegram bot and I wrote this simple code for it: const TelegramBot = require("node-telegram-bot-api"); const token = "*******"; const bot = new TelegramBot(...
Hamid's user avatar
  • 1
0 votes
0 answers
19 views

Dynamically reverse-proxying websockify with node.js

I have many websockify backends to which I get the address to from redis, so node is necessary. the problem is that I can't get the Websocket connection to stay alive. I am using express for the web ...
Itai Bentolila's user avatar
0 votes
0 answers
10 views

netlify deployment issue, the function is not running post static deploy

I got this running great locally on ngrok. I am having issues both deploying on netlify now. This file lives in netlify/functions folder and is named api.js. I am using a telegram bot and when i ...
help's user avatar
  • 1
0 votes
0 answers
29 views

Uploading files using Google Function Framework

I can't get file uploads to work with FunctionFramework when using Express. I've created an example repo: https://github.com/Boardtale/FunctionFrameworkAndUploadingFiles/blob/master/index.js. I've ...
Nickname0222022022's user avatar
-1 votes
0 answers
13 views

Delivery API (Mondial Relay, Colissimo, DHL...) [closed]

I’m building a website using React, Tailwind, Node.js, and Stripe, and I need some help with integrating Mondial Relay for shipping calculations. Context: Before a purchase is made, I want customers ...
Rémy Martinet's user avatar

1
2 3 4 5
9472