470,894 questions
Best practices
0
votes
0
replies
33
views
Apache mpm_event + SSL: Now more performant than mpm_worker?
The last time I had to choose between using mpm_worker and mpm_event, it was my understanding that mpm_event was functionally equivalent to just using mpm_worker if SSL was enabled and so it couldn't ...
-1
votes
0
answers
25
views
Sass @use Undefined Variable Error Despite Correct Import Order
I am facing a persistent Undefined variable error when using the new Sass module system (@use). My setup involves a modular file structure where variables are imported before they are used, but the ...
Tooling
0
votes
1
replies
52
views
Dealing with third party rate limits
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,...
0
votes
0
answers
44
views
Electron Builder: Built app starts UI but server + SQLite database do not run in packaged versio
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 ...
0
votes
0
answers
43
views
I'm getting a timeout when adding second page.evaluate with puppeteer
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 ...
0
votes
0
answers
49
views
Error: read ECONNRESET with Puppeteer and node 25.0.0 on windows
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,
...
1
vote
1
answer
77
views
How to call JS code from C++ thread in embedded Node.js/v8 environment
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 ...
0
votes
1
answer
56
views
Property 'VECTOR' does not exist on 'DataTypes' in Sequelize with pgvector
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 ...
1
vote
0
answers
45
views
TypeORM @CreateDateColumn() returns wrong time compared to PostgreSQL
I’m using TypeORM with PostgreSQL. My entity has:
@Entity()
export class AuditLog extends BaseEntity {
@PrimaryGeneratedColumn()
id: number;
@CreateDateColumn()
date_action: Date;
}
When I ...
0
votes
0
answers
61
views
Why drag and drop from my application is not happening to any external applications in electron
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 ...
0
votes
2
answers
42
views
Next.js multilingual routing. Main page site.com always redirect to site.com/en instead of staying on site.com
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. (...
1
vote
0
answers
85
views
Docker build fails on VPS with chown -R appuser:appuser on Node+Python image but works on Local
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 ...
Best practices
1
vote
1
replies
108
views
typescript - 'Response' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled
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 ...
-1
votes
1
answer
66
views
Fetching all the issues of a project using Jira APIs
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 [...
-1
votes
0
answers
25
views
TypeError: (0 , import_crypto.randomFillSync) is not a function from compiled package
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 ...
0
votes
1
answer
49
views
Why window.close() from renderer process doesn't trigger the close event in Electron's main process?
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 ...
1
vote
2
answers
106
views
How to declare type for app.locals.something?
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('...
1
vote
0
answers
77
views
When I try to run npm I get a crypto binding error
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 ...
0
votes
0
answers
78
views
Decompress .zstd file using typescript
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 ...
3
votes
1
answer
54
views
Query not printed as expected
exports.getAllProducts = async (req, res) => {
try {
console.log(req.query);
const queryObj = { ...req.query };
const excludedFilters = ["page", "limit", "...
1
vote
1
answer
84
views
PostgreSQL UUID query issue
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, ...
0
votes
1
answer
65
views
Can't register DMX driver [closed]
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');
...
Tooling
1
vote
0
replies
42
views
Reuse "node_modules" from pre-built dev container
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 ...
2
votes
1
answer
83
views
System cache constantly grows when stress testing backend app
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, ...
0
votes
0
answers
50
views
Next.js 15 Middleware: "Cannot find the middleware module" error with NextAuth.js
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 ...