473,482 questions
-3
votes
0
answers
27
views
Getting error "Cannot find module 'graphql-upload' or its corresponding type declarations." in Node TypeScript application
I have created a Node application which uses TypeScript and below I have defined my tsconfig.json:
{
"compilerOptions": {
"module": "commonjs",
"...
0
votes
1
answer
51
views
Passing the username through an iframe without passing it in the url in extjs
Currently we have an extjs application where we are calling the /login API through an Iframe by passing the username as /login?username=YWRtaW5AZWZmaXNlci5jbzZTZzMTg= and reading this in the ...
-1
votes
0
answers
46
views
Data not written properly on buffer [closed]
I am working on ETI (Enhanced Trading Interface) using nodejs.
In that there is session logon request with template ID 10000.
As per documentation the request header should not be encrypted and ...
1
vote
1
answer
38
views
is it possible to check whether the user-given foreignFieldId (req.body.foreignFieldId ) exists or not before calling db.create(req.body) in MongoDB
Product Schema:
const productSchema = new mongoose.Schema({
name: { type: String, required: true },
price: { type: Number, required: true },
addedBy: { type: mongoose.Types.ObjectId, ref: '...
-2
votes
0
answers
33
views
How to Deploy a Node.js (TypeScript + Prisma) REST API on Namecheap Shared Hosting? [closed]
I have a Node.js REST API written in TypeScript, using Prisma ORM with a MySQL database.
For testing, I deployed it to Railway, which worked fine because it pulled from GitHub and managed deployments ...
1
vote
1
answer
51
views
NextJS 15 Build Error occurred prerendering page "/404"
when running NODE_ENV=developement npm run build in nextjs project, there is the following error,
Error: should not be import outside of pages/_document.
Read more: https://nextjs.org/docs/messages/...
0
votes
1
answer
40
views
ConversationRelay Twilio Not allow user input when the agent is speaking
When the agent is speaking and the user interupts them the agent starts to gather the input even when they are speaking. How do I prevent this?
Here is my init of the Conversation Relay.
const ...
0
votes
0
answers
19
views
NestJS Prisma Generated Types Not Included in dist folder
I'm working on a NestJS backend and using Prisma for my database. I generated my Prisma type with the following configuration:
generator clientTypes {
provider = "prisma-client-js"
...
0
votes
0
answers
37
views
Google Cloud Function with Node.js 12 still running past Node.js decommission date [closed]
I have a Google Cloud Function (1st gen) running on Node.js 12. According to the warning message in the Google Cloud Console, Node.js 12 was supposed to be decommissioned on January 30, 2025:
Node.js ...
-2
votes
0
answers
22
views
index.js served extremely slow from webpack-dev-server on Windows 11 [closed]
This is a very strange problem.
For some reason linux and mac hosts are totally fine, but on Windows 11, when we serve our large SPA with webpack-dev-server, the transfer speed for the index.js is ...
0
votes
0
answers
23
views
TypeScript Error: 'authenticate' Property Does Not Exist on FastifyInstance Type When Using JWT
I'm having an issue with my Fastify + TypeScript application. When I try to use the authenticate method in my routes, TypeScript gives me the following error:
Property 'authenticate' does not exist on ...
0
votes
0
answers
34
views
npm run build is failing due to @types.lodash-es incompatability
These are the errors I'm facing in Angular 7:
22:12:30 node_modules/@types/lodash/common/collection.d.ts(753,33): error TS2304: Cannot find name 'PropertyName'.
22:12:30 node_modules/@types/lodash/...
-1
votes
1
answer
51
views
Console.log result shows ${field} instead of the actual string [closed]
In the code below, I run:
node test-update.js
and I'm expecting output in the console such as:
. . .
Field: "name"
Data: "John Doe"
Data: "Jane Doe"
. . .
but instead ...
-2
votes
0
answers
26
views
putting fullstack (frontend and backend) repo into single docker container [closed]
I have a two folders (frontend and backend) for my git repo. For best performance, should I put the fullstack repo into a single docker container or have different repos for client and server (i.e 2 ...
0
votes
0
answers
28
views
Why is my npm install resulting in modules not found in npm start?
When I run npm start in my package repository root directory, I'm getting an error that a module is not found. I've confirmed that street_images.js and /@streetmix/export-image/build/index.js are ...
-3
votes
0
answers
37
views
Why do I get an error when I enter the command "Copilot setup" in neovim? [closed]
I want to use Copilot in qt creator,so I follow these steps:
download node.js(v22.14.0) and npm(v10.9.2)
download neovim(v0.10.4)
enter:
git clone https://github.com/github/copilot.vim.git
$HOME/...
-4
votes
0
answers
36
views
Unable to get the correct version of npm for node.js [closed]
I downloaded the latest stable version of node.js V.22.14.0 and npm version 5.5.1 was automatically installed. I believe this version of npm is to old. I have uninstalled node.js and reinstalled ...
-3
votes
1
answer
47
views
Error Handling Environment Variables Natively in Node.jsv22 Within a Container
I am trying to work with .env files natively, as starting from Node.jsv20 (I am currently using version v22.14.0), it is no longer necessary to install libraries like dotenv to manage environment ...
0
votes
0
answers
30
views
Clover POS payments API response
POSTMAN response for payment API
Hi, I am developing a clover reporting software using clover platform API's. My client has provided me with a detailed report using the clover dashboard. Below are the ...
-1
votes
0
answers
24
views
connect with mongodb atlas and choode render for hosting i got below error when url change to atlas,when url is localhost 27017 there is no error
const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description);
^
MongoServerSelectionError: 38A70000:...
-2
votes
0
answers
32
views
Automatic response header writing in nodeJS [closed]
I'm having a problem with a controller (create), each db call made using mongoose (look at the service) will automatically write to response headers with no manual control over it, that's leading to ...
1
vote
1
answer
41
views
Dynamic table, display nested property in TableCell from array of objects
I have an array tracks of type Track[]. I need to display them in a HeroUI/NextUI table dynamically. The example uses getKeyValue, which is a function in the HeroUI library, to dynamically retrieve ...
0
votes
1
answer
48
views
Await causing aws Lambda to timeout
I have some async code in my AWS Lambda function and no matter what async code is running it never resolves. It just causes the Lambda to timeout.
export const handler: Handler = async (event) => {
...
-4
votes
1
answer
76
views
Cypress on headless mode not able to resolve promises through await calls
I am developing an API testing backend using Cypress with cy.request. I am aware that cy.request natively uses built-in promises (Cypress.Chainable), so there is no need to handle it with JavaScript ...
0
votes
0
answers
35
views
sendFile not working although the path is correct
We have this structure in the server:
Inside controller.js:
const path = require('path');
console.log(path.join(__dirname, "../views/recognition/index.html"))
return res.sendFile(path....
-2
votes
0
answers
25
views
Swiss Ephemeries giving wrong values for Sun and Mercury for Lahiri Ayanamsha [closed]
I am using Swiss Ephemeris for developing chart calculation using Lahiri Ayanamsha. However it is giving wrong degrees for Mercury and Sun when used with SIDEREAL and Moseph flag.
var d = new Date();
...
-2
votes
0
answers
38
views
Trying to install ANY JavaScript Module/Package with PNPM ended up Failing
So, recently, i just install NodeJS on my system, i switch to PNPM because NPM is too slow, so i install it using the command:
npm i -g pnpm
then, i run pnpm -v, it says: 10.5.2, but, problem arise ...
0
votes
0
answers
29
views
How to initiate Ping/Pong in CCXT websockets under Node
I'm working on a CCXT based app server on Node. I want to measure websocket connection latency between Node and remote exchanges. For this purpose I'd like to initiate a ping right after websocket ...
1
vote
0
answers
28
views
Error occurred prerendering page while next building
I’m in trouble while building with Next.js. I am using React 18, Next.js 14, and Node 18 versions. I've tried all other compatible versions with my code, but when I attempt to build my project with ...
0
votes
0
answers
25
views
How can I share a resource file in a cross project
I am using the gRPC library in a cross project. My server implementation will be in the js part on nodejs and my client in the jvm
So my question is how can I best share the .proto file between them. ...
-3
votes
0
answers
32
views
What's the simplest transpilation setup to assign the same value to module.exports and module.exports.default?
https://andrewbranch.github.io/interop-test/#synthesizing-default-exports-for-cjs-modules describes the following problem:
In Node, a default import of a CommonJS module always links to the module....
-4
votes
0
answers
37
views
Authorizing against Spotify with Node
I've been trying to get a token from the Spotify API using NodeJs (within the Nuxt). I keep getting a 400 bad request response though. I've asked both ChatGPT and Claude but they couldn't help me ...
-2
votes
0
answers
21
views
problem with SQLite problem in Electron application [closed]
how are you? I'm a junior and I'm facing a problem in an offline desktop application developed with Electron.js, SQLite, HTML, CSS, JavaScript and Node.js. The application was made by third parties ...
3
votes
2
answers
90
views
How to correctly unref a V8 substring ("sliced string") from its source string
I spent a better (or rather worse) part of today hunting a bug that caused Node.js engine to randomly run out of memory when searching a giant log file line by line by regex.
The cause was that I kept ...
0
votes
2
answers
67
views
+300
Error uploading image to Cloudflare from Buffer with node js and FormData
I am trying to upload an image to Cloudflare from a buffer. I am using the following code:
const cloudflare_url = `https://api.cloudflare.com/client/v4/accounts/${process.env.CLOUDFLARE_ACCNT_ID}/...
-5
votes
0
answers
38
views
How can I be dialing USSD code in Nodejs? [closed]
I want to be dialing ussd codes through my nodejs app, but it all not working.
I just need a way or a free API that cann be dialing ussd code on a particular sim card, and returns response back.
I ...
-2
votes
1
answer
35
views
Azure Function Node.js Typescript v4: Functions not found after 2nd deployment after
I have an issue that appears others have had in the past which is after deploying an Azure Function Node TypeScript v4 app, the functions are not found.
I have read the following existing Stack ...
1
vote
0
answers
30
views
How can I instrument Next.js middleware request/response objects on Edge runtime using @vercel/otel and register() hook in middleware.ts?
I am attempting to retrieve request/response objects from individual middleware functions at various points in the middleware chains running in Next.js Edge runtime without manually instrumenting each ...
2
votes
1
answer
63
views
Claude Code failing with Cryptic message - Error: write EPIPE
In short: although tool was working perfectly, it started failing.
Full output:
➜ claude
Error: write EPIPE
at afterWriteDispatched (node:internal/stream_base_commons:159:15)
at writeGeneric (...
-2
votes
0
answers
29
views
I can't solve this docker error. Can someone help me? [closed]
Here's a link to the dockerfiles and errors I ran into:https://gist.github.com/Enigma014/9e7938b5ea36b9f45872e52af4949dfe
Link to the project incase you want to check the project structure:
https://...
-1
votes
0
answers
30
views
NodeJS microservice architecture slow under load
To start with I'm not the one who created and setup the architecture, but forced to currently "fix" the problem. It's a 10+ ExpressJS microservices + API Gateway running as docker containers ...
1
vote
1
answer
28
views
How to display a web browser instance in my next js web application?
In my web application, the user can view the website that the user enters in the text input, and then the url (webpage) is rendered in an iframe on the right inside the web application itself.
The ...
1
vote
1
answer
33
views
Why it doesn't redirect to the login page if the user is not logged in?
I am implementing protected routes and the code successfully generates the status 500 server error if the user is not logged in. now I want to redirect a user to the login page if the user is not ...
-3
votes
0
answers
40
views
Openapi spec generator from database schema [closed]
Any thougts about a generator of Openapi spec (json, yaml) from database schema.
I would like to scaffold an nodejs rest api from Postgresql database schema , using fastify or other node framework. ...
1
vote
2
answers
34
views
Alternative to 'assert' in Node JS with strict mode
I have a Firebase Functions project that has "type" set to "module" in package.json so that I can use ES6 syntax. Some of the files import data from another json file with a line ...
0
votes
1
answer
44
views
How to Automatically Trigger a Webhook on New Row Addition in Google Sheets Using Google Apps Script?
I’m working on a feature where a client can link their Google Sheet to my system. Whenever a new row is added to the sheet, the system should send the new order data to a webhook. My initial approach ...
-1
votes
0
answers
26
views
Telegram api nodejs mtproto why is the Telegram session revoked shortly after successful registration (SESSION_REVOKED)?
Question:
I have a Node.js application using the Telegram API for user registration. The registration works fine, but right after the user successfully logs in, the session seems to be revoked within ...
0
votes
1
answer
18
views
Shopify OAuth Redirects to Online Store Orders Page Instead of Custom URL
I'm implementing Shopify OAuth for customer login in my custom Shopify app, but after authentication, Shopify redirects users to the store's orders page instead of my specified localhost:3000/account ...
0
votes
2
answers
65
views
okhttp websocket immediately fails after connection
I've been tryin to get websockets working in my Android app. I am using OKhttp websockets, an apache proxy and a node server. I finally got a connection, but it connects and then within a few seconds ...
-1
votes
0
answers
18
views
Libp2p nodes can not connect to send messages to other nodes
import { createLibp2p } from 'libp2p';
import { tcp } from '@libp2p/tcp';
import { noise } from '@chainsafe/libp2p-noise';
import { mplex } from '@libp2p/mplex';
import { mdns } from '@libp2p/mdns';
...