470,863 questions
0
votes
0
answers
74
views
Unable to list accessible customers with Google Ads API (test acc)
I'm trying to access google ads accounts in js.
Here's how I do the callback mechanism:
...
const { clientId, userId } = JSON.parse(state);
const oauth2Client = new google.auth....
1
vote
0
answers
39
views
Squarespace live server installation command failed (Windows 11)
I've been trying to install the local Squarespace server using npm and it's been a mess.
My co-workers who use Macs don't have these problems, but the other person with Windows 11 does.
When I run npm ...
2
votes
1
answer
105
views
How to add data from a client-side input field to my array websites[name] and then display it in html document
How to add data from an input field in the browser to my array websites[name], and then display it in a html paragraph?
server.js
import express from "express"
import { websites } from "...
0
votes
0
answers
108
views
How to publish repository to npm using yarn
I did a fork of this repository and I changed in each package.json the name from @bigbluebutton/editor to @piszczj/editor. Then I've run yarn install and then yarn workspace @piszczj/utils npm publish ...
Advice
3
votes
0
replies
78
views
How can I efficiently run a RAG pipeline fully in Node.js using OpenAI embeddings and FAISS without relying on Python?
I am working with a small Retrieval-Augmented Generation (RAG) setup and I want to run the entire pipeline purely in Node.js without using any Python-based services.
Workflow i am going to follow :
...
0
votes
0
answers
58
views
Server path alias not recognized when importing files between server and client
I have 3 files:
// server/src/entities/NewPost.ts
export interface NewPost {
title: string;
content: string;
}
// server/src/api/posts/create.ts
import { NewPost } from '@/entities/NewPost';
...
1
vote
0
answers
49
views
Stop Rollupjs embedding absolute path inside js dist map file
I'm trying to update my GitHub action to use latest version of "base" action. All is looking fine but one PR check fails on checking if /dist directory was updated.
It finds some changes in /...
2
votes
0
answers
45
views
How to share a single WebAssembly.Memory instance between multiple ESM worker threads in Node.js 22?
I am working with Node.js 22 using native ESM and Worker Threads, I'm trying to share a single WebAssembly.Memory instance across multiple workers to avoid duplicating memory.
// main.mjs
import { ...
0
votes
1
answer
124
views
How to import based on variable to avoid loading unnecessary assets
Using React Native+Expo
I'm trying to load only the correct font based on the user font.
const comicFontName = 'Comic-Neue';
const fonts = [comicFontName];
export function DisplayPost(props: ...
1
vote
0
answers
62
views
@angular/ssr v20+ with Express: 1+ Second Event Loop Blocking After TransferState Serialization
We're experiencing a consistent 1-1.5 second delay in our Angular SSR v20.2.2 application that occurs after all Angular rendering completes but before the response is sent to the client. The delay ...
1
vote
0
answers
69
views
Is there an API to check for currently supported runtimes by AWS Lambda?
I’m developing a tool to speed up the AWS Lambda creation process for my colleagues and I, as we use it extensively, and I need to periodically check for deprecated runtimes. The idea is to create a ...
0
votes
1
answer
57
views
Pass env variable from playwright test script to laravel controller method
I am running a store() method in which I have to create a project using playwright tests. My playwright index.spec.ts file where I am calling create project is:
import { test } from '@playwright/test';...
0
votes
1
answer
73
views
Node JS curl GET error - 'schema-name' is not recognized as an internal or external command, operable program or batch file [closed]
I want to call curl with NodeJS with GET method. I want to pass authorization token and parameter. I've wrote my codes as below:
const url = 'https://external-url?table-name=LD_PRD&schema-name=...
0
votes
1
answer
27
views
Unable to get salesforce token using username and password
I am trying to make a api endpoint to get the token of salesforce using username and password. I have nodejs+expressjs server set up and using the jsforce package. Here is my endpoint
app.post('/auth/...
1
vote
0
answers
32
views
invalid_connection_id on Scalekit login
I'm trying to set up Scalekit for my MCP server on Node.js
It opens a google login page, but when I select my google account it shows invalid_connection_id error:
"No active SSO Connections ...
0
votes
2
answers
95
views
Running `nodemon server.js` opens `nodemon.js` file in text editor instead of executing
I installed nodemon globally and locally I added it to the environment path. I tried to use flags but nothing works
One month ago (last time I used it), it was running completely fine. Now it's ...
0
votes
1
answer
90
views
Critical: Persistent API_KEY_INVALID (400 Bad Request) from both Apps Script and Node.js using Google AI Studio API [closed]
I am facing a critical authentication issue where a newly generated Google AI Studio API key consistently fails with a 400 API_KEY_INVALID error, both from Google Apps Script and a standard Node.js ...
2
votes
1
answer
67
views
where to find format API reference?
i just discovered this (see top answer) where they used format() for bulk query, but i can't find format anywhere in both mysql and mysql2 docs. Does anyone know where to find it?
0
votes
1
answer
122
views
Problem Installing Sharp for Next.js Project
I am having a problem downloading the Sharp dependency for my Next.js project v15.5.6. I've tried reinstalling Node.js, but it still fails.
Below is the failure message after running npm install sharp ...
0
votes
0
answers
72
views
Include library in Node js from network address
I have been recently working with Genetec(a surveillance system company) software in order to incorporate the footage of my company in a web server. They have support for this, and I have set up an ...
0
votes
0
answers
25
views
Integrate socket.io namespaces with Node Cluster
I am trying to integrate socket.io with Node's HTTP alongside Node's Cluster Module. Consider the reproducible example:
index.js:
let cluster = require('cluster')
let fs = require('fs')
let http = ...
2
votes
1
answer
103
views
How can I make my Node.js backend code cleaner without using an ORM when working directly with SQL?
I'm building a Node.js backend using plain SQL (no ORM, just mysql2 wrapped in a small helper).
However, as my project grows, my route handlers start looking messy — full of raw SQL strings embedded ...
0
votes
1
answer
210
views
How can I use Firecrawl to crawl and take a screenshot of a webpage instead of using Playwright in Node.js?
I'm currently using Playwright in Node.js to capture screenshots of webpages, but I'm exploring Firecrawl and wondering if it can handle screenshots directly.
Here is what my firecrawl looks like with ...
0
votes
0
answers
24
views
how to get my app to load in expo go on my android device
I have the following code in my index.js (node js):
const corsOptions = {
origin: function (origin, callback) {
if (!origin || whitelist.includes(origin)) callback(null, true);
...
2
votes
1
answer
66
views
"headless" playwright tests fail because button click does not work
We have some Tests for our electron node.js UI. They work fine if run on our desktops (windows and linux, even on linux via SSH and local X-Server)
But the moment they run in our Jenkins pipline they ...
2
votes
1
answer
80
views
Should I close the DB connection in NextJS
I am new to programming (and NextJS) and I'm building a NextJS app, using Mongoose for my MongoDb connection. I was wondering if I should close the connection after each query? Right now I am just ...
0
votes
0
answers
40
views
Error with Turso connection database on Node project
I'm following a Node.js tutorial where the database is created with Turso but I have a problem, the connection is created well but I can't realise any type of query. I'm using these libraries:
import ...
0
votes
1
answer
88
views
Windows 11 build fails for Electron + Next.js: missing @img/sharp-darwin-arm64
I'm developing a project using Next.js 15.5.4 inside an Electron.js application, with the following stack:
React.js
Tailwind CSS
SQLite
On Windows 11, running npm run build (or next build) ...
0
votes
1
answer
67
views
I keep getting 403 Forbidden when requesting channel members
I am trying to set up an app using Flutter to act as a companion app that checks to see if logged-in user is a member; if they are, provide reward.
I am using Firebase with Firestore and Functions to ...
2
votes
0
answers
138
views
eslint, lsp, and setup error in react project
I have a nvim setup that I have created and when I want to open a react/nextjs project it errors on imports like import Image from "next/image"; and no one likes that, so I wanted to ask how ...
0
votes
0
answers
116
views
Why is tsc reporting far fewer errors than VS Code for the same project and TypeScript version?
I have TypeScript installed as a dev dependency in my Node project, and when I run tsc --noEmit, it does not report most of the errors I'm seeing for the same project in VS Code, although they both ...
0
votes
0
answers
40
views
How to make an Oclif command the default command when using explicit command strategy?
I'm building a CLI using Oclif v4 with TypeScript and tsup for bundling. I want my main command to run by default, without requiring the user to type it as a subcommand.
Currently, my oclif ...
0
votes
0
answers
62
views
How to not lock tables in an ODBC connection?
I'm working on a Node.js project that reads data from an HFSQL database. I'm using the odbc library to create a simple connection like this:
connection = await odbc.connect("DSN=xxxxx;UID=xxxxx;...
0
votes
0
answers
41
views
Using `npx knip` to find all unused .svg imports in JS/TS project?
I have a React Native project where I import a lot of .svg files into my components.
How can I use npx knip to find all unused svg files, just like it has found all unused .js/tsx files?
This is my ...
0
votes
0
answers
52
views
Encountering ERR_CONNECTION_REFUSED error with an extremely small chance in Node.js when logging in with users into production and asking for cookies?
I have deployed a MERN stack app into production which has a basic login function that asks the backend to search for the given username and password in the database and if it was found, return with ...
4
votes
1
answer
168
views
What is the difference between running Node.js program from file and from terminal?
I was experimenting with this code using node a.js command:
console.log(this); // {}
(function func() {
console.log(this); // Object [global]
})();
and:
'use strict';
console.log(this); // {}
(...
-1
votes
1
answer
120
views
How to use Prisma with Neon Serverless from Vercel? [closed]
I'm trying to use Prisma with neon/serverless from vercel. When I run npm run dev, I get this error message:
Argument of type 'Pool' is not assignable to parameter of type 'PoolConfig'.
Types of ...
0
votes
0
answers
131
views
Why am I getting "Invalid initialization vector" when calling my signed URL upload API in Node.js?
I’m working on a Node.js backend that generates a signed URL for uploading files to AWS S3 via CloudFront.
However, when I hit the signed URL endpoint from curl, I always get the following response:
{&...
0
votes
0
answers
33
views
Node spawn chrome.exe is getting blocked by node script
I can't seem to figure out why my node script is blocking this chrome instance from running fully detached. The UI freezes, then if I force close node script the chrome becomes responsive again.
const ...
0
votes
1
answer
66
views
I have a question about which approach is more performant in Prisma when fetching related records
I have two entities with a one-to-many relationship, something like this:
model ParentEntity {
id Int @id @default(autoincrement())
name String
children ChildEntity[]
}
...
0
votes
0
answers
54
views
Can't get a row from dynamoDB by id
I’m seeing a weird intermittent read issue with DynamoDB using the AWS SDK for JavaScript v3. For some (but not all) item IDs, the first call to GetItem returns no item, and the second call ...
1
vote
0
answers
63
views
How to properly transform backend error responses using response-transformer or custom policy in Express Gateway?
I'm working with Express Gateway to proxy requests to a backend service and want to transform error responses into a common format like this:
const errorResponse = {
timestamp: new Date()....
0
votes
0
answers
42
views
Issue with electron forge
I am building an electron app with preact + typescript with vite tool.
below is my vite config
import { resolve } from 'path'
import obfuscatorPlugin from "vite-plugin-javascript-obfuscator";...
0
votes
0
answers
29
views
Soul Machines Orchestration servers Query format
I'm working on integrating my custom RAG into Soul Machines avatar to make the conversations of avatar according to my RAG Database. I'm connecting RAG with soul machines using orchestration server(...
1
vote
0
answers
61
views
Express' res.clearCookie() does not clear the cookie?
I assign the cookie here:
const sessionEnd = new Date(Date.now() + ( 1000 * 60 * 60 * 24 ));
const cookieOptions = {path: "/", expires: sessionEnd, httpOnly: false};
async function ...
0
votes
1
answer
58
views
Socket io is not connecting from Angular to backend nodejs
So I am trying to build a dynamic dashboard application ,so I use socket io 4.8.1 , and In frontend as well I installed the same version , now I used polling socket io it actually worked with polling ...
0
votes
1
answer
65
views
Getting 413 for a large request node application running via PM2
A legacy application is running v12.18.0, and when presented with a large GET request it gives me
413 Request Header Fields Too Large
I have checked the same request by running it on a different ...
1
vote
1
answer
103
views
How to enforce Node version in Yarn v4?
I have this in package.json:
"engines": {
"node": ">=18.20.5"
},
But when trying to install (yarn install) using Node version 18.20.3 did not throw any errors,...
0
votes
2
answers
180
views
How can I update my server file so that I can have the server up and running?
I am running my backend using mongodb and express. I am restarting the server using nodemon. After running:
npm run dev
I am getting the error below:
> [email protected] dev
> nodemon server.js
[...
0
votes
0
answers
36
views
onnxruntime-node native binding not found when packaging with pkg — need official way to load from custom path
I'm trying to bundle a Node.js CLI tool that uses @xenova/transformers into a single executable using pkg.
The build works fine, but when I run the packaged executable, I get this error:
Error: Cannot ...