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

PostgreSQL simple query slow on server

I use Prisma for two really simple queries in my Node backend const excavationSiteCount: number = (await client.excavation_sites.count({where: {owner: user}})); const artifactCount: number = (await ...
user17145524's user avatar
0 votes
0 answers
53 views

Firebase functions V2: ; SyntaxError: Cannot use import statement outside a module at wrapSafe

I am trying to send notification to device when I receive message in chat in my app. At the moment I just want to read snapshot contents, but when trying to deploy, I am hit with an error: Firebase ...
user7289922's user avatar
-2 votes
1 answer
42 views

Configuring nginx for React and Node [closed]

I am trying to configure nginx for my application setup. I have a React app, and it talks to a Node backend, running at localhost:3000. In nginx.conf: server { listen 80; server_name ...
Mandroid's user avatar
  • 7,568
-2 votes
0 answers
51 views

Cannot find module 'express' despite it being listed in package.json

I'm working on a Node.js project and encountering the error: Cannot find module 'express'. This is what I see when I run pm2 logs. In pm2 the only active process is server.js /home/ec2-user/.pm2/logs/...
Bogdan Mihai Pantelimon's user avatar
-3 votes
0 answers
50 views

Cannot find module 'express' in server.js [closed]

I'm working on a Node.js project and express is not found when I use it in server.js. This is what I see when I run pm2 logs. In pm2 the only active process is server.js /home/ec2-user/.pm2/logs/...
Bogdan Mihai Pantelimon's user avatar
2 votes
0 answers
64 views

Cloud Run installs JS Modules every call

I have a cloud run function in python, and some JS files. The python code calls the JS code via processes. For some reason every time I call the cloud run function it seems to install jsdom which ...
Ahmed Zaidan's user avatar
1 vote
0 answers
46 views

Azure AD - Code Verifier does not match the Code Challenge supplied

I'm trying to authenticate with Microsoft Azure AD OAUTH 2.0 in my Node.js/TypeScript app. During the repo cloning process, I keep getting this error when handling authentication: AADSTS50148: The ...
Jugert Mucoimaj's user avatar
-1 votes
1 answer
43 views

nodejs event loop lag 300ms and huge request latency [closed]

I have a next.js website that under the load 80 requests per seconds (for one pod) shows huge latency 20-30 seconds to handle a simple request like API call. I checked event loop lag and under the ...
Galina's user avatar
  • 556
0 votes
0 answers
39 views

How to fix Error with include Credentials in CORS

This is the error I am facing, only with add to cart and add fav API not with login or register, it was working fine until yesterday evening, I don't know what happened. Access to XMLHttpRequest at '...
Surani Faizan's user avatar
-1 votes
1 answer
43 views

Azure Functions not getting deployed

I tried to create Azure Function resource and in the function file whenever I import langchain openai, the deployment is successful but the function doesn't get deployed. const { app } = require('@...
wolf1729's user avatar
1 vote
1 answer
55 views

Angular "No pipe found with name 'async'

I have the following Angular typescript and html template and it prompts the captioned error when build. Typescript: import { ChangeDetectionStrategy, Component, Inject, OnDestroy } from '@angular/...
samuel wong's user avatar
-3 votes
0 answers
42 views

Authorization for NextJS Application

I want to integrate authentication and authorization into my application. For now the project structure is like this - ├── .next ├── node_modules ├── public ├── src │ ├── Components │ │ └── ...
Titas Saha's user avatar
0 votes
0 answers
37 views

Using JavaScript with Node.JS to post data to a SQL Server database and return query results from the database

When I attempt to pull data from the database I am getting zero results although my parameter is correct. From my index.js where CustID is a parameter app.get('/contacts', (req, res) => { ...
Carlosa1771's user avatar
-4 votes
0 answers
35 views

Postman backend API and Angular Application [closed]

I need help getting my angular application to communicate with my backend api. I need my product to look like the attached image. I currently am using postman that takes JSON data, and it works ...
user30399129's user avatar
-3 votes
0 answers
47 views

Pins only appear when i refresh after i login . How do i fix this problem?

I am building a Travel-log app using Node.js/Express where users can add pins on map and log entry for each pin. Currently when i login, i also need to refresh for the pins to appear. Also when i log ...
Anjay P.P's user avatar
-1 votes
1 answer
33 views

Express V5: Is there any way to modify `req.query`?

Express v5 changed the behavior of req.query: The req.query property is no longer a writable property and is instead a getter. That being the case... In our ExpressV4 app, we use Joi in middleware ...
thom_nic's user avatar
  • 8,171
1 vote
1 answer
35 views

PostgreSQL 63-Character Limit Issue in Sequelize with Multiple Includes

I’m currently working on a project where we are using PostgreSQL with Sequelize to perform complex queries involving multiple nested include relationships. However, we’ve encountered an issue related ...
Dip Patel's user avatar
1 vote
1 answer
56 views

Use hash of content of uploaded file as filename with Node.js and multer

I use multer to upload files to a NestJS backend. The important part of my multer config is: { // multer options: https://github.com/expressjs/multer#multeropts storage: multer....
andymel's user avatar
  • 5,836
1 vote
1 answer
33 views

Update PSD files using NodeJS

I need to update a psd files using nodejs script. I have tried with as-psd, psd packages and also converting the psd to png but couldn't come to any solution. Here is my code for ag-psd package: const ...
Md. Muhtasim Fuad Fahim's user avatar
1 vote
1 answer
34 views

NodeJS Sequelize Raw Query Not Returning All 2 Rows

I have 2 rows in the database table moneys. Using Sequelize, I want to select all rows from the table. The following raw query in DBeaver MySQL client returns all the results. So, that works as it ...
kkamara's user avatar
  • 41
0 votes
1 answer
54 views

Angular + Electron app goes blank after Ctrl+R

On the latest version of both Angular and Electron. First load works fine, but then any refresh will blank the screen. Reload the page, and it blanks. Will log in console: (node:44678) electron: ...
Cooper S's user avatar
1 vote
0 answers
28 views

lightning wallet connection by LNURL Auth + LNBits [closed]

I'm currently integrating a Bitcoin Lightning wallet into my Node.js backend and React.js frontend. Right now, I'm trying to solve a bug where creating an invoice through my LNURL Auth client doesn't ...
Samuel Olayiwola's user avatar
-4 votes
1 answer
32 views

Why is my DELETE Blog API returning "Blog not found" when I try to delete a blog with a reference to a User? [closed]

I am working on a REST API where I am trying to delete a blog document from my MongoDB database. Everything works fine, and the blog is deleted when I don't have a reference to a User in the blog ...
Harsh Mishra's user avatar
-2 votes
0 answers
34 views

Keeping Modal open with AJAX background data refresh [closed]

I have a Node.js Express app using DataTables, and in those DataTables, I have child rows with bootstrap 5 modals. The modals open just fine; however, I am refreshing the data in the background every ...
JBMacer's user avatar
0 votes
0 answers
32 views

Is there an analog of the markdownlint library for the java language? [closed]

I came across the need to check markdown text for compliance with good style in java. I know that there are similar tools for javascript, for example https://github.com/DavidAnson/markdownlint. ...
Marat Tim's user avatar
-2 votes
0 answers
27 views

react do not start on pc they show below error [closed]

npm error code ENOENT npm error syscall open npm error path C:\Users\ACER\package.json npm error errno -4058 npm error enoent Could not read package.json: Error: ENOENT: no such file or directory, ...
Prathmesh Shakewar's user avatar
0 votes
1 answer
40 views

'CreateEntityDto' only refers to a type, but is being used as a value here

currently I'm trying to create a generic controller for my node.js app on typescript basis. This is the code of a working controller (here only with a create method): export class CompanyController { ...
derstauner's user avatar
  • 1,924
0 votes
1 answer
46 views

On product edit page, to send the same images, need to click on the button and choose the same images again

On the product edit page, if you want to send the same images, you'll need to click the button and select "Same Images" again. The images are uploaded to Cloudinary as URLs, and they don't ...
eslam wael's user avatar
0 votes
1 answer
52 views

Issue using express-handlebars in Node.js – "shop.hbs" not found even though it's in views folder

I'm trying to use express-handlebars with Node.js, but I keep getting an error that says the view file can't be found. The error specifically mentions that it can't locate shop.hbs, even though the ...
Emzar Chichoevi's user avatar
0 votes
0 answers
41 views

Connection failed: socket.io

how are you? Guys, I'm trying to use socket.io to create a chat, locally everything works, when I put "Cpanel" into production I can't connect. Displays message below: websocket.js:43 ...
Leonardo Arruda's user avatar
-2 votes
1 answer
48 views

why my login form is not working while the sign up form is working [closed]

I have my user authentication in the same file on my react app, now the user registration is working when a user is creating an account but when the user is trying to login using the same details that ...
user23352247's user avatar
0 votes
0 answers
33 views

Cannot use Shopify CLI on Windows/WSL due to React useState error — how can I code a Shopify store from scratch without CLI?

I'm trying to develop my own custom Shopify store from scratch (for myself, not clients). I want full control over the theme: building custom sections, pages, everything based on my designs. What I ...
Botond Till's user avatar
-1 votes
0 answers
27 views

My web app doesn't work when deployed in production

I have created a weather App React as frontend and Node js as Backend. The app uses open weather api to get the weather data and shows it in the frontend. The problem is that the runs on development. ...
Revolter23's user avatar
1 vote
1 answer
32 views

Interception xhr requests after pressing the load more button with puppeteer

Initially two json files arrive on the site - the rest arrive after clicking the ‘load more’ button. I'm trying to intercept all requests. The example shows how I am waiting for the button to appear ...
Artem Taran's user avatar
-1 votes
0 answers
25 views

Nested dependencies http-proxy-middleware of webpack-dev-server in package-lock.josn not updating from overrides package.json [closed]

Nested dependencies http-proxy-middleware of webpack-dev-server in package-lock.josn not updating from overrides package.json using next14.2.28, react18.3, and node 22.8 also webpack-dev-server latest&...
Sanjeev Puspam's user avatar
0 votes
1 answer
25 views

Why Can This Not Write To Directory 'Output'?

I am attempting to write a file to an existing directory, using node, path, and fs. How it's supposed to work: Init mock data. Loop through mock data. Write mock string to existing directory 'output' ...
Varelion's user avatar
-1 votes
0 answers
23 views

RTMP Disconnects quickly when the stream is turned on and No index.m3u8 files are being generated in the assigned directory [closed]

23/4/2025 09:52:58 9408 [INFO] [rtmp connect] id=7K1RWSO1 ip=::1 app=live args={"app":"live","flashVer":"LNX 9,0,124,2","tcUrl":"rtmp://localhost:...
Kartik Salve's user avatar
0 votes
1 answer
33 views

Firebase v2 function loses admin rights

I have a firebase functions file that, in v1, worked perfectly. Upgrading to v2, I use: const functions = require("firebase-functions/v2"); const admin = require("firebase-admin"); ...
Andrew-NZ's user avatar
  • 501
-4 votes
0 answers
26 views

how to get month wise total revenue for every teammember [closed]

const getTeamMembers = async (bisUserId, locationId = 0) => { let whereCon = { bisUserId, }; if (locationId !== 0) { whereCon.locationId = locationId; } const ...
Raju Wiztech's user avatar
0 votes
0 answers
26 views

New Gatsby project build failing

I created a new Gatsby project following the docs, and after the build ran npm run develop but got this error: > [email protected] develop > gatsby develop success compile gatsby files - 2.358s ...
user30359347's user avatar
0 votes
2 answers
25 views

How to properly type Axios with response interceptor + useSWR Fetcher in TypeScript?

I'm building a Next.js app with useSWR, axios, and TypeScript. I have an Axios instance with a response interceptor that returns response.data: // api.ts import axios from "axios"; export ...
Winfrey De Vera's user avatar
0 votes
0 answers
29 views

Error while building React app with ApexCharts: Module parse failed in apexcharts.esm.js

I'm working on a React project, and when trying to create a production build with react-scripts build, I get the following error: javascript Copy Edit Creating an optimized production build... Failed ...
Alexander Zeisl's user avatar
-2 votes
0 answers
24 views

How do i upload multiple images to cloudinary via streams?

I am building a travel-log app where authenticated users can pin places they visit and add records. I am planning to add images on record with cloudinary on server. this is the current way i am doing ...
Anjay P.P's user avatar
1 vote
0 answers
32 views

Different session data for router middleware

I am having trouble understanding how express.js works with routers in this instance. I am using express and passport.js to authenticate and store user data. What I am trying to do currently is have ...
Arthur's user avatar
  • 41
0 votes
0 answers
27 views

Unable to Download NPM due to EACCES error on MacOS

I am unable to install npm on MacOS Sequoia 15.4. I get the following error: npm error code EACCES npm error syscall rename npm error path /usr/local/lib/node_modules/npm npm error dest /usr/local/lib/...
mfusco's user avatar
  • 57
0 votes
0 answers
19 views

Http streams breaking issues after shifting to http2

So in my application i have to run alot of http streams so in order to run more than 6 streams i decided to shift my server to http2. My server is deployed on google cloud and i enabled http2 from the ...
Mohammad Aosaf's user avatar
1 vote
0 answers
71 views

Why I get connection timeout to Cloud SQL in GCP Cloud Functions Gen 2 randomly on some requests?

I have several Google Cloud Functions (Gen 2) functions that access a PostgreSQL database hosted in Cloud SQL, using node-postgres (pg). These functions can be called multiple times by the same ...
Matheus Ribeiro's user avatar
0 votes
1 answer
24 views

Node: concurrency safe function to ensure directory exists

In node js, how do we make a concurrency safe function to ensure that a directory is created if it doesn't exist? This is my version: const creatingDirectories = new Map(); async function ...
Mandroid's user avatar
  • 7,568
0 votes
0 answers
29 views

install ENTCORE [closed]

I'm currently installing ENT open ent, (entcore, springboard, infra-front etc). I'm having some installation problems, particularly with the widgets and timeline. If any of you have already installed ...
arthur's user avatar
  • 1
0 votes
0 answers
19 views

In prisma migration, it gives this error: Already in sync, no schema change or pending migration was found

I recently added a new field called membersCount in my community model in the schema.prisma , as usual after that i migrated my schema npx prisma migrate dev , but it shows ----> Already in sync, ...
Mahima Singh's user avatar