Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
53 views

If I watch a directory that has a .git inside of it and run fs.watch, does that listen to changes within .git folder? For example if I use: fs.watch(dir, { recursive: true }
Yousaf Wazir's user avatar
Tooling
0 votes
1 replies
55 views

I have been working on AWS Serverless Lambdas and now having issues with third party rate limits. Context A Lambda invocation triggered by an event: calls a third-party API 4 times, runs some logic,...
aheed's user avatar
  • 68
Advice
0 votes
1 replies
65 views

I’m integrating OpenAI’s GPT API using Node.js. My app runs fine for a while, but then randomly throws: Error: 429 - You exceeded your current quota, please check your plan and billing details. Even ...
Jackson's user avatar
  • 1,544
0 votes
0 answers
56 views

I have an Electron application that uses: React for the frontend Node + Express backend inside /Server A SQLite database stored inside the same /Server folder During development, everything works ...
You Cef's user avatar
1 vote
0 answers
54 views

I’m trying to replace a the content of an image URL with the result of a custom protocol. The idea is to get the data from a zip file. The img element looks something like this: <img src="...
Manngo's user avatar
  • 17k
0 votes
0 answers
45 views

I have this with node 25.0.0 and Windows and puppeteer. Basically the get_card_search_results is called and it loads a page that features lazy loading. It will "scroll" the page down to ...
raphael75's user avatar
  • 3,268
0 votes
1 answer
655 views

I worked on my other system it works but when i installed the latest npm==10.9.3 and node==25.1.0, and next==15.3.3 it will pop out the following error and cannot render any web page. ⨯ [TypeError: ...
Chi-Yuan Li's user avatar
0 votes
0 answers
57 views

As the title says, I just installed node 25.0.0 and puppeteer on windows. Here is my file: const puppeteer = require('puppeteer'); var browser; var puppeteer_options = { headless: true, ...
raphael75's user avatar
  • 3,268
1 vote
0 answers
49 views

Here's a minimal GitHub Gist that runs on Electron Fiddle : It's supposed to show GitHub Copilot (github.com/copilot) in a webview element as if it was in a normal browser : Using the following code ...
KaKi87's user avatar
  • 955
1 vote
1 answer
84 views

I have Node.js (v22 - I am bound to this version) embedded into my application and exposing a C++ object to its environment. My JS environment setup (based on the docs) runs in a separate thread, like ...
user31836277's user avatar
-3 votes
0 answers
73 views

I need to implement role-based access control on the backend with postgresql, Prisma, and Express.js+TypeScript and the roles I have in mind so far are admin, manager, customer, delivery crew. I want ...
Fazle Rabbi Faiyaz's user avatar
0 votes
1 answer
67 views

I am building a RAG application using Node.js, Sequelize, and PostgreSQL with the pgvector extension. I have successfully enabled the vector extension in my database. I am now trying to create a ...
Mohammed Hassan's user avatar
0 votes
0 answers
36 views

In my MERN app, when an API call fails with a 401, I intercept it, call the /refresh endpoint to get a new access token, and retry the original request. The problem: if multiple API calls fail at the ...
Dipak Halkude's user avatar
1 vote
0 answers
56 views

I’m using TypeORM with PostgreSQL. My entity has: @Entity() export class AuditLog extends BaseEntity { @PrimaryGeneratedColumn() id: number; @CreateDateColumn() date_action: Date; } When I ...
Mostafa Aourik's user avatar
0 votes
0 answers
46 views

UncaughtException: Out of memory; check if mysqld or some other process uses all available memory; if not, you may have to use 'ulimit' to allow mysqld to use more memory or you can add more swap ...
prashanth varma's user avatar
0 votes
0 answers
64 views

My problem: I want to drag a file from my application into the another application like Paint , Windows Excel , Windows Files system ect, but the drop is not happening. I have an Electron app. The ...
EaB's user avatar
  • 53
0 votes
0 answers
52 views

Fixing "Incorrect reference digest value" in SOAP XML WS-Security with node-soap Problem I'm experiencing an intermittent issue with SOAP XML requests to an external service using the node-...
Hank Mason's user avatar
0 votes
2 answers
42 views

devs! I'm trying to build a multilingual website based on Next.js(15.6) Node 22.21.10. Locally I have no issue with routing everything works as expected. Both lang versions are served as expected. (...
ultrapanam's user avatar
0 votes
0 answers
104 views

I'm using whatsapp-web.js for automating responses on my WhatsApp business profile. But there's a recurring issue where the bot mistakenly interprets my contact's status updates (posted publicly to ...
sarabande's user avatar
1 vote
0 answers
92 views

I'm building a Docker image based on node:20-slim with a Python virtual environment. My Dockerfile includes: # Use official Node.js image (stable, small) FROM node:20-slim # Prevent interactive ...
Viraj Shah's user avatar
1 vote
2 answers
110 views

I'm facing an issue with Sequelize(postgres) transactions in a high-traffic Node.js/Express app. I have a flow like this: async function createPayment(data, trnx) { // Save in DB within transaction ...
Tahseen Rasheed's user avatar
Best practices
1 vote
1 replies
147 views

TypeScript offers type-only imports to explicitly indicate that an import statement is solely for type information and should be completely erased during compilation to JavaScript. This is ...
Dipan Mandal's user avatar
Best practices
4 votes
4 replies
128 views

I’m setting up a new Node.js backend project and trying to decide whether to go with TypeScript (TS) or stick with JavaScript (JS). I’m aware that TypeScript offers type safety and better tooling, ...
Akshay payya's user avatar
-2 votes
1 answer
81 views

I need to fetch all the issues present in the project using the Jira APIs with some specific fields. Is there a way to do so without hitting the rate limit? It should be Hierarchical up to level 3 [...
Sagar's user avatar
  • 1
0 votes
0 answers
55 views

I have the following code: src/main.js const importModule = async (moduleName) => { const mod = await import(moduleName); return mod; }; const fs1 = await import("fs"); const fs2 = ...
dooxe's user avatar
  • 1,490
-1 votes
0 answers
26 views

I have a monorepo built with turborepo and I published my private package and in vs code there is no errors but when I install that package in an external app and use a component from within it, I ...
Korer's user avatar
  • 393
1 vote
0 answers
46 views

I have already submitted a question regarding Pixelit, see this question for background info. Long story short, I'm making a Discord bot as a learning project and I am just trying to use Pixelit, an ...
Foofoo9906's user avatar
0 votes
1 answer
55 views

I'm building an Electron application and trying to close a window from the renderer process using window.close(). However, the close event listener I've registered in the main process isn't being ...
Parminder Singh's user avatar
3 votes
1 answer
104 views

So, I'm trying to learn full stack by making a list app, and I'm using Sequelize.js for the database. So far I've got User and List models. I recently switched to Sequelize v7.0.0-alpha.47. I can't ...
MaxCodes's user avatar
  • 114
1 vote
2 answers
118 views

It's the same question as How do I extend the typings of Express.Application to give typings for app.locals but the suggested solution doesn't work for me. I have server.ts : const express = require('...
Quentin's user avatar
  • 1,173
-1 votes
0 answers
24 views

I’m facing an intermittent issue when uploading files to Amazon S3 from an Android app using a pre-signed PUT URL. Setup: Android app uploads directly to S3 via a pre-signed PUT URL. After receiving ...
AshVin C K's user avatar
1 vote
0 answers
88 views

Whenever I try to use npm I get an error: npm ERR! Error: crypto binding not found. npm ERR! Please build node with openssl I have completely uninstalled Node.js and npm, deleted their directories ...
Jim's user avatar
  • 63
-1 votes
0 answers
150 views

When using npm to install dependencies, my system produces a strange behaviour concerning peer dependencies. A package referenced in the app (let's call it xyz) has a peer dependency to Vite and ...
Sebastian Edelmeier's user avatar
0 votes
0 answers
83 views

I'm trying to programmatically decompress a .zst file using typescript. This is the code I am using: import { createReadStream, createWriteStream } from 'node:fs'; import { createZstdDecompress } from ...
speeder1987's user avatar
1 vote
0 answers
41 views

I’m building a simple Voting DApp using Solidity and Hardhat. The contract deploys successfully, and I can start and end voting without issues. However, when I try to call the getWinner() function ...
Pendem Prashanth's user avatar
3 votes
1 answer
58 views

exports.getAllProducts = async (req, res) => { try { console.log(req.query); const queryObj = { ...req.query }; const excludedFilters = ["page", "limit", "...
ahmad fakher's user avatar
3 votes
1 answer
88 views

Preface: I truly don't have a clue about anything related to node.js, this is a learning project for me. I do know some Javascript. I followed this youtube tutorial to begin a node.js and discord.js ...
Foofoo9906's user avatar
1 vote
1 answer
93 views

I have the following in a TS script that I'm running with the npm tsx package (slicing to 1 item to make it shorter, but same error when using full array): console.log(psql(`SELECT c.id lead_uuid, ...
mrivera's user avatar
  • 21
-1 votes
0 answers
59 views

I am trying to mock some native node: libraries with Node's native node:test mocking on a CJS TypeScript project. Sometimes I have success when mocking without the node: prefix, other times not. ...
myol's user avatar
  • 10.1k
0 votes
1 answer
67 views

I'm trying to set up a DMX driver using the 'dmx' library but I get this error when I run my code. TypeError: this.drivers[driver] is not a constructor Here is my code: const DMX = require('dmx'); ...
TacoSnack's user avatar
  • 197
0 votes
1 answer
57 views

Take the following Mongoose schema. const userSchema = mongoose.Schema({ username: { type: String, required: true, unique: true, minLength: 3 }, name: ...
Ahmad's user avatar
  • 10
Tooling
1 vote
0 replies
45 views

I'm trying to build a pre-built dev container (see here). Among others, the app uses some Node.js packages. To speed up the dev container performance, I'd like to cache them. For this, I'm running npm ...
mu88's user avatar
  • 5,699
-3 votes
0 answers
37 views

Why was /usr/local/lib the defaut local packages destination directory in NodeJS docker image ? FROM node:24-alpine WORKDIR app/ COPY package.json yarn.lock ./ RUN corepack enable \ && ...
TRicks43's user avatar
  • 153
2 votes
1 answer
92 views

I've been stress testing my .NET application that uses PostgreSQL to find memory leaks. The app is very stable memory-wise — memory usage only depends on the number of concurrent connections. However, ...
pkrzysiek's user avatar
0 votes
0 answers
43 views

I used puppeteer in my Node.js project and wanted to deploy it to Render as Docker image but the puppeteer chromium browser fails to launch in Render and gives me the error trace below. The app runs ...
boom pow's user avatar
  • 331
0 votes
0 answers
52 views

I'm implementing authentication middleware with NextAuth.js in Next.js 15.3.2 using the App Router. The middleware compiles successfully but throws a runtime error when trying to access protected ...
Jose Zepeda's user avatar
1 vote
0 answers
35 views

I am trying to set up Saucectl in my project and I have done the entire setup which includes saucectl config files and env variables. I verified all the sauce documented Packages option, Dependency ...
Satish Rongala's user avatar
2 votes
1 answer
83 views

I’m running a simple test server to test out a few concepts. For testing purposes, I have a directory with a structure like this: data/ index.html images/ image1.png image2.png ...
Manngo's user avatar
  • 17k
2 votes
0 answers
87 views

I have a basic MERN app in production with a login system that always runs into either an ERR_CONNECTION_RESET or an ERR_CONNECTION_REFUSED AxiosError when first attempting to login after what it ...
user31641956's user avatar
6 votes
5 answers
5k views

I’m working on a Next.js + TypeScript project with a MySQL database using Prisma. I set up my configuration in prisma.config.ts like this: import { defineConfig, env } from "prisma/config"; ...
Amrita Pathak's user avatar