All Questions
49 questions from the last 7 days
1 vote
2 answers
104 views
Frequent update of records in database
I’m building a real-time chat application using NestJS, Postgresql (Main DB), Redis and Socket.IO. My database schema (simplified) looks like this: -- Chats table chats ( id serial primary key, ...
1 vote
1 answer
671 views
Stuck with Prisma error after updating to v7
I was working with Prisma and NestJS and it is fine but when I updated Prisma to version 7 I started getting errors, fixed them, but I am stuck with this one. Part of schema: datasource db { ...
Advice
0 votes
2 replies
77 views
SPA framework output access without node or any server setup?
New SPA frameworks like React, Angular, Vue etc. Requires running node js server. But is there any way to run "output" (code generated after transpilation step) without running any server, ...
2 votes
1 answer
153 views
Prisma 7.0.1 : TypeError: Cannot read properties of undefined (reading '__internal')
I was using Prisma 6, and after upgrading to Prisma 7 I had to apply some changes to my schema.prisma. These changes include modifying the schema.prisma file and adding a new prisma.config.ts file. My ...
0 votes
1 answer
61 views
Why does heavy object cloning degrade JS performance even when using structuredClone compared to manual optimization? [closed]
In a high-performance Node.js service, I noticed that structuredClone() introduces unexpected latency spikes when cloning large nested objects (30–50 KB each). Even switching to manual cloning ...
1 vote
3 answers
89 views
How to handle multiple <img> elements with the same ID in Selenium (auto-detect and interact)? [closed]
How can I handle multiple <img> elements in Selenium when all of them have the same id attribute? I need a way to automatically detect and interact with these images, even though they share the ...
1 vote
1 answer
104 views
How to disable "body-parser" globally in NestJS and use it on specific routes?
If I have understood correctly, the NestJS with default Express engine uses and enables the "body-parser" as default. If so, I am not fine with it because most requests has GET-type, and for ...
-4 votes
0 answers
101 views
+50
How to make "npm audit fix" fix vulnerabilities if it does nothing even there is "fix available via `npm audit fix`" message?
Executing the npm audit. It will be enough to show just last three issues - all of them has "fix available via `npm audit fix" message: tar <6.2.1 Severity: moderate Denial of service ...
Advice
0 votes
2 replies
48 views
Code Review: Websockets integration using NestJS for trading application
I’m currently building a trading platform that requires streaming real-time price updates to the UI. I’ve implemented a WebSocket gateway and added handling for common issues such as: Ghost/...
-1 votes
1 answer
54 views
FFmpeg doesn't detect small invalid data inputs [closed]
While writing tests for an endpoint that writes input to an FFmpeg process's stdin, I encountered an issue where FFmpeg doesn't respond when I pass small, invalid data (non-media data). It only reacts ...
0 votes
0 answers
57 views
+50
How to update multiple records with different values and SQL injection protection with raw SQL in prisma?
For November 2025, the Prisma does not support the updating of multiple records with different values. Although the transactions are being considered as main workaround for such cases, the transaction ...
-5 votes
0 answers
61 views
Download button not asking for location in Firefox (but in Chrome does) [closed]
I have following two files (server.js and index.html) which together should allow me to download a file using nodejs server (ran by node server.js). It does happen when I click the link but only in ...
1 vote
0 answers
52 views
Firestore Error: "16 UNAUTHENTICATED: Request had invalid authentication credentials" even after sending Firebase ID Token in Authorization header
I am building a project where the frontend is React, and the backend nodejs uses. I have used the firebase Admin SDK to use firestore . Authentication is done using Firebase Authentication, and after ...
0 votes
0 answers
54 views
Vercel build error: “Cannot find module '../lightningcss.linux-x64-gnu.node'” when building (Vite + Tailwind + React) project [closed]
I’m trying to deploy my personal website to Vercel using Vite + React + Tailwind CSS. The project builds and runs fine locally (npm run build works without errors), but the Vercel build fails with the ...
0 votes
0 answers
50 views
How to update a large number of mongodb documents in a tree structure?
I'm using mongo db with payloadcms and I have tree like structure. We have a collection called nodes. A node have children as array and a parent id. Now I want to change the node status like marking ...