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

Copy pasting in Puppeteer

const puppeteer = require ('puppeteer'); const fs = require('fs'); (async () => { const browser = await puppeteer.launch({ headless: false}); const context = await browser....
kit2d2's user avatar
  • 1
0 votes
1 answer
8 views

How to impletent complete - not partial - TLS protection for connections of Bull.js to Redis server?

Talking about this bull.js library: https://github.com/OptimalBits/bull So far, the only working way to do TLS for Bull.js connections to Redis server seems to be: const someQueue = new Queue("...
jurijus01's user avatar
1 vote
0 answers
18 views

Is it possible to create an npm library that uses service workers without requiring end-user script configuration?

The Problem I want to create an npm library that uses service workers under the hood, where the end user does not need to configure anything—ideally, not even place or reference a sw.js file. The main ...
GermanJablo's user avatar
0 votes
0 answers
10 views

ReferenceError: dotenv is not defined in Node.js with PM2

I'm encountering a ReferenceError: dotenv is not defined issue in my Node.js backend application managed by PM2. Here’s the breakdown: Environment Details: Node.js version: 18.20.5 PM2 version: 5.x ...
nothing's user avatar
  • 63
0 votes
0 answers
8 views

How to reliably check Casper (CSPR) balance in Electron js application?

I'm building an Electron app (Node 18) to check cryptocurrency balances, including Casper (CSPR). However, I'm getting "No working endpoints found" errors when trying to check CSPR balances. ...
Jintor's user avatar
  • 647
0 votes
0 answers
7 views

Unable to set cookie for sub domain with express & Netlify

I'm not seeing set-cookie on callbacks with successful authentication on my deployed app, whereas I have success locally (verified session creation, auth successful, withCredentials, etc). My node.js ...
Funsaized's user avatar
  • 2,098
0 votes
0 answers
6 views

My Pinecone query simply won't return any match (Using Langchain + NodeJS)

I'm using a Node script to load a vectored txt file into a Pinecone index and then trying to query something about the loaded text. My index has the following characteristics: metric: cosine ...
Valmir Júnior's user avatar
0 votes
0 answers
14 views

Test specified with only:true inside a suite isn't run

I was reading the docs for node:test and came across --test-only. The docs specify that a test that is inside of a suite is run if only: true is specified even if the suite doesn't have only specified....
suyog's user avatar
  • 149
1 vote
0 answers
3 views

Handling External Webhook Payload on Node Shopify App

I am building a Node.js/React Shopify app that needs to update an order's delivery status based on payloads received from an external API's webhook. However, I am facing challenges in handling both ...
beef nachos's user avatar
1 vote
0 answers
4 views

More than 6 or 7 connection for single nodejs server with mysql

I'm using Node.js, MySQL, and ReactJS in my web app. Using the Node.js library 'mysql' and a connection pool, when I run my frontend project, it shows about 5 to 6 connections in the database (running ...
user28877858's user avatar
0 votes
0 answers
12 views

How to optimize mysql query result from nodejs with mysql2

I have a query with single table, it has 40k datas and I set the indexing in every table, I try to execute the query, the query result show less 7 second. with same query I try to exec in my nodejs ...
Indra suandi's user avatar
0 votes
1 answer
12 views

EJS Syntax issue Could not find matching close tag for "<%-" in node js

I am creating dashboard where I have created a layout for sidebar and different pages of sidebar have different content. here is the layout.ejs: <!DOCTYPE html> <html lang="en"> &...
RIZWAN ALI's user avatar
1 vote
1 answer
49 views

Order of await execution makes no sense in node

I wanted to understand at which point an async js function was appended to the event loop and when it was being immediately executed: async function test2(){ console.log('3 test2 is being executed'...
user2741831's user avatar
  • 2,376
0 votes
1 answer
14 views

ProcessError: warning: failed to remove _next/static/.../: Permission Denied

I have a React project with NextJS and I tried running npm run deploy (executing gh-pages -d out) but it gives me the following error: > [email protected] predeploy > npm run build > [email protected]....
realhuman's user avatar
  • 311
-4 votes
0 answers
14 views

Disable npm commands in specific directory

I am working on a project that is being managed using the bun package manager. But I am habitual to use npm commands in directories, for installing deps or running the local server. I am skeptical ...
Satyam Mishra's user avatar
0 votes
0 answers
8 views

Issue with Node-PG-Migrate and Incorrect Database Name

I'm using node-pg-migrate for my migrations, and I've set up my .env file with a custom database name, but when I run the migration command, it always tries to connect to a database with my PC's admin ...
DevKaranJ's user avatar
0 votes
1 answer
41 views

How can I solve the Mongodb atlas connection error in nodejs?

I'm getting below error while try to connect mongodb atlas database with nodejs mongoose: Error: Could not connect to any servers in your MongoDB Atlas cluster. One common reason is that you're trying ...
sugnay patel's user avatar
0 votes
1 answer
47 views

Easy to answer "More expressions than columns" when using CURRENT_TIMESTAMP

My typescript code is trying to insert a record into an RDS cluster and it's giving me | ERROR Error saving mytable record: error: error: INSERT has more expressions than target columns I believe I ...
Woodsman's user avatar
  • 1,167
0 votes
0 answers
16 views

Nodemailer Error: connect ECONNREFUSED 2404:6800:4003:c1c::6c:465

const transporter = nodemailer.createTransport({ service: "gmail", host: "smtp.gmail.com", // tried to use host from smtp port: 465, // tried suggestion to use 465 or 587 but ...
Vey GP's user avatar
  • 1
0 votes
1 answer
23 views

Error [ERR_REQUIRE_CYCLE_MODULE]: Cannot require() ES Module...but I'm not

Trying to run my node app, with node main.js, but getting this error: Error [ERR_REQUIRE_CYCLE_MODULE]: Cannot require() ES Module. I have also tried node --experimental-specifier-resolution=node main....
nerdlinger's user avatar
  • 2,117
0 votes
2 answers
37 views

How do you pass a bound method as a parameter in javascript?

I'm trying to pass a bound method to a function, but I can't quite figure out the syntax. It seems like javascript wants to somehow differentiate between an unbound method and a bound method, but ...
xaviersjs's user avatar
  • 1,727
1 vote
1 answer
17 views

Cloud CDN Signed URL: Your client does not have permission to get URL /pathToFile/sample.mp3 from this server

I am using Cloud CDN to serve files privately to my app. My app calls a cloud function which will generate the signed URL and return it for access. My load balancer is connected with a backend bucket. ...
Victor's user avatar
  • 355
0 votes
0 answers
25 views

Run Cypress 13 on a machine without Internet connection [closed]

We would like to run Cypress tests on a machine that has no connection to the Internet. The machine runs an Ubuntu 22.04.5LTS operating system. Steps to reproduce: On an Ubuntu machine with Internet ...
Gridders's user avatar
-5 votes
0 answers
36 views

Variable breaking script [closed]

If I add a vairable the bot message breaks. This is the code I have right now await channel.send({ embeds: [{ color: categories.length > 0 ? CATEGORY_COLORS[categories[0]] : ...
Genius74o's user avatar
0 votes
1 answer
27 views

How can I make a React and Firebase web app more secure?

I built a web app that has authentication with firebase, but I am looking for ways to make it more secure. Functionality includes reading and writing to firebase if you are an authenticated user. All ...
Spro's user avatar
  • 7
0 votes
0 answers
21 views

Chromium browser does not show elements inside of appeared element [closed]

Chromium browser does not show content of appearing element. It looks empty And and usual browser it looks next: It is usual HTML element which appears dynamically by click on icon URL on the left. ...
Den Silver's user avatar
0 votes
0 answers
8 views

Problems with nuxt and adminlte

I am using admin lte and nuxt for a project I am doing, but I am having the following problem: To generate a list with dropdown options use: <nav class="mt-2"> <ul class="...
Alexis Rodas's user avatar
-1 votes
0 answers
23 views

Why Are New Messages Not Appearing in Chronological Order in My Chat Application?

I'm building a chat application where users can send and receive messages. However, I'm facing an issue where new messages are not displayed in the correct order on the frontend. Here's the scenario: ...
Sami Ali's user avatar
  • 143
-1 votes
0 answers
28 views

Environment variable not updating in Node.js (Express + TypeScript)

I have a Node.js project with Express and TypeScript that uses environment variables. One of my services (AIVoiceStreamService) reads ELEVENLABS_API_KEY from the .env file. However, the console output ...
Durgesh's user avatar
  • 19
0 votes
0 answers
14 views

How to bulk upload and edit metadata of each file in NodeJS?

I'm trying to test something in my NodeJS app in Postman where I want to be able to upload files. Now, the uploading itself works fine and I can just pass bunch of files in the multipart/form-data: ...
AnAverageDev's user avatar
-3 votes
0 answers
23 views

after im creating a react app this is the exception i get

One of your dependencies, babel-preset-react-app, is importing the "@babel/plugin-proposal-private-property-in-object" package without declaring it in its dependencies. This is currently ...
אדן בן הגיא's user avatar
0 votes
1 answer
13 views

How to convert DocumentNode back to string in graphql-js

So I was wondering how I can convert a DocumentNode back to a query string in graphql-js. I thought at first it should be a simple var.toString() but it turns out that it is not like that at all.
Mohammad Jawad Barati's user avatar
0 votes
0 answers
8 views

Lerna React Native CLI ERROR: autolinkLibrariesFromCommand

I have a Lerna project There are 2 react native projects inside the packages part. GameCenter and Bingo I want to use Bingo in Gamecenter GameCenter metro.config const { getDefaultConfig, mergeConfig }...
LuridFTH's user avatar
0 votes
0 answers
47 views

PostGres INSERT ERROR error: invalid message format

I have table like this: CREATE TABLE IF NOT EXISTS ${tableName} ( id BIGSERIAL PRIMARY KEY NOT NULL, value text, uploaded boolean DEFAULT false ) I get the data from ...
Dung Do's user avatar
  • 11
-3 votes
0 answers
49 views

I tried to run a Node js application using Type Script and Express, but it didn't work. It threw some errors. Can someone help me resolve this issue? [closed]

I am trying to run a Node.js application using TypeScript and Express. However, I am encountering the following issues: 1.When I use the command npm run dev, I get the error: TypeError: Unknown file ...
M BHARATH's user avatar
0 votes
0 answers
34 views

How to call store procedure by using javascripts?

server.js : const express = require('express'); const mysql = require('mysql2'); const path = require('path'); const app = express(); app.use(express.json()); const db = mysql.createConnection({ ...
sonny's user avatar
  • 141
2 votes
1 answer
166 views

Updating ESBuild from 0.24.0 to 0.24.1 throws strange errors

I am using tsup, which uses ESbuild, to build my libraries. Example: https://github.com/react18-tools/turborepo-template/actions/runs/12427963648/job/34698706616 When I tried investigating, I found ...
Mayank Kumar Chaudhari's user avatar
-4 votes
0 answers
21 views

where should I start if I want to build a web API for taking user input and showing appropriate documents correct to user input [closed]

The user inputs their details and in our API we would show them the areas that they are most suitable. An example like a web site that take user input and shows them the appropriate scholarship s(he) ...
Adithyan Manoj's user avatar
-1 votes
0 answers
23 views

failed to load config from vite.config.js [duplicate]

I am creating a react app by following steps : 1. npm create vite@latest . 2. npm install When I am running the command npm run dev Then i encounter this error : error message Environment and Package ...
Prakash Kumar's user avatar
0 votes
0 answers
29 views

AxiosError: Request failed with status code 500 when sending data from client to database

I am trying to send data from my client-side application to the server using Axios, but I am receiving an error: AxiosError {message: 'Request failed with status code 500', name: 'AxiosError', code: '...
Arif Shahriyar Nader's user avatar
-1 votes
0 answers
19 views

Error while doing npm run dev in vite+react project [duplicate]

(https://i.sstatic.net/wi9rcQTY.png) Expected identifier but found "import" (define name):1:0: 1 │ import.meta.url Expected identifier but found "import" (define name):1:0: 1 │...
Akshat Srivastava's user avatar
-3 votes
0 answers
48 views

ERROR Expected identifier but found "import" while running npm run dev on a vite project [duplicate]

I created a vite project using the follwing commands: npm create vite@latest -> React -> Javascript npm install and started the server using npm run dev But the server would not start and an ...
Sounak Bhawal's user avatar
-2 votes
0 answers
30 views

I am facing an issue in frontend while creating a game [closed]

I am creating a chess game but enocuntered an issue with the code after window crash the data is retrieved but frontend is showing error with vite.config.ts [Issue ][1] [1]: https://i.sstatic.net/...
Swastik Kotwal's user avatar
-1 votes
0 answers
54 views

Creating First Project React JS using Vite ERROR WHILE NPM RUN DEV, HELPP [closed]

I try to learn react js, and create my first project react js using vite. i followed the guideline on here: https://vite.dev/guide/. before npm run dev, i already npm install, when npm run dev i got ...
Newbie Learner's user avatar
1 vote
0 answers
20 views

How to Apply JS Mongoose Aggregate Regex Match to String Array and Other Fields

I am trying to write an aggregation to regex match a search string across various fields in a list of items. Here is an example JSON array of those items: { "user": "String", ...
Sniper Noob's user avatar
1 vote
0 answers
6 views

CrBasic can not using UDPDataGram to send data to NodeJS server

I have nodejs UDP server like this: const dgram = require('node:dgram'); const server = dgram.createSocket('udp4'); server.on('connect', () => { console.log(`connect`); server.close(); }); ...
Dung Do's user avatar
  • 11
0 votes
1 answer
52 views

Node.js Express allowing importing JS modules from local directory outside the app

I would like to share JS code (utilities.js) between web projects on the same server for use between client-side Node.js Express scripts. I'm trying to utilize ES6 module imports for this purpose. The ...
Michael VanLaanen's user avatar
0 votes
0 answers
20 views

How can I make my Jest test recognize jsx/tsx syntax?

My test is refusing to recognize < angle brackets. Jest encountered an unexpected token Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard ...
johnrubythecat's user avatar
0 votes
0 answers
23 views

NPM dependency errors with React 19

I had some dependency errors when running npx create-react-app . --template typescript This was fixed by running: npm config set legacy-peer-deps true npm i This fixes the installation problems. ...
ThePrince's user avatar
  • 880
1 vote
0 answers
11 views

I implemented Zibal payment gateway for NextJS, it gives an error zibal.init is not a function

import { NextResponse } from 'next/server'; const Zibal = require('zibal'); Zibal.init({ merchant: 'zibal', callbackUrl: 'https://some-callback-url.tld', logLevel: 2 }); export async function ...
Mohammad Halimi's user avatar

1
2 3 4 5
9471