472,561 questions
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'
...
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, ...
-1
votes
0
answers
26
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. ...
0
votes
0
answers
35
views
Cannot find module '../../prisma/generated/main/index.js' while starting NestJs Project?
I have two Prisma schemas like this:
Schema1 Generator:
generator client {
provider = "prisma-client-js"
output = "./generated/main"
}
Schema2 Generator:
generator client {
...
-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 ...
0
votes
0
answers
18
views
How does Express/Passport detect when a session is manually deleted from MongoDB without calling sessionStore.get()?
I'm using express-session with connect-mongo as the session store in my Node.js server. I’ve added console logs to the session store methods to trace calls to .get(), .set(), .touch(), and .destroy() ...
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 ...
-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 ...
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 ...
-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 ...
-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
│ │ └── ...
-1
votes
0
answers
18
views
How i can handle better auth onApiError?
enter image description here
I have configured better auth in backend:
import { AuthContext, betterAuth } from "better-auth";
import { prismaAdapter } from "better-auth/adapters/prisma&...
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 ...
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 ...
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 ...
-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 ...
-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, ...
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/...
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 ...
0
votes
0
answers
27
views
Unable to run Video Intelligence AI due to Message Serialization Error
i'm trying to run Google Cloud Video Intelligence through cloud functions locally using firebase emulator. This function hasn't been deployed to production and i get an error.
I'm following the ...
0
votes
0
answers
22
views
How can I deploy a web app with prisma to docker with different os binaries?
Im building my first website on docker and it uses prisma. My project is on windows and I am building onto a linux base-image which I assume is causing problems. When I build my docker file I get the ...
0
votes
0
answers
13
views
Are qpdf.check and qpdf.qpdf are implemented into node-qpdf2
I have searched the sources in the git-repo, but I can not find anything about that. Basically I want to do this qpdf --check --password=MyPassword filename.pdf in a node.js app with node-qpdf2. Is ...
-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/...
0
votes
0
answers
39
views
Nest.js. Swagger. How to split swagger docs into 2 documents: for clients and admins
I'm using NestJS (v11) and @nestjs/swagger (v11.0.3).
I have a modular app structure where some controllers are intended for public clients (mobile app, frontend) and others are intended for admin ...
-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 ...
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 {
...
0
votes
0
answers
38
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
'...
0
votes
0
answers
13
views
Braintree nodejs package - getaddrinfo ENOTFOUND api.sandbox.braintreegateway.com - after idle time
Here is the following code snippet I am using (in Node.js environment) on Debian:
const gateway = new braintree.BraintreeGateway({
environment: braintree.Environment.Sandbox,
merchantId: ...
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) => {
...
0
votes
0
answers
24
views
node-notifier ignores wait and timeout settings
Running node-notifier, using node, on windows 11 home, the values for wait and timeout seem to be ignored, and the notification just pops up for 5 seconds then disappears no matter what.
The ...
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 ...
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 ...
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 ...
-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 ...
-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('@...
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 ...
0
votes
0
answers
39
views
How to download data from a specific Cloud Firestore database?
This command
npx -p node-firestore-import-export firestore-export -a appConfig.json -b backup.json
should return data from the default Firestore database. However, I need data returned from one of ...
0
votes
0
answers
25
views
running screen is slow when running using node's spawn
I'm running this command: screen -S server -X stuff $'\003'
when I run it directly in bash it execute immediately.
When I'm running it through node's spawn, it takes several seconds for the command to ...
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 ...
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....
0
votes
0
answers
16
views
How to properly configure @adminjs/upload to store image files and hide the text input for the file path?
Product Model
import { DataTypes } from "sequelize";
import sequelize from "../util/database.js";
const Product = sequelize.define("product", {
id: {
type: ...
-2
votes
1
answer
29
views
Is it safe to use npm package for Amazon SP API application? [closed]
I want to use this library https://www.npmjs.com/package/amazon-sp-api to simplify amazon SP-API data access in my app. But is that safe to use it? Or there is a risk that a developer will do some ...
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 ...
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 ...
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 ...
-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&...
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 ...
-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 ...
0
votes
1
answer
23
views
WSL-2 and VS Code: How can I forward a port and have it be accessible to the external network?
I am attempting to create a simple webserver using nodejs on WSL-2 using VS Code. When I run the application, VS Code detects that the server is running and dynamically forwards a port for me. However,...
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 ...