473,826
questions
-1
votes
1
answer
47
views
dotenv is not seeing .env files
dotenv path will not pick up .env files but sees everything else in the folder.
i have tried
dotenv.config({path:'relative path'})
dotenv.config({path:'absolute path'})
when i try the relative path ...
0
votes
2
answers
75
views
npm install doesn't install node modules
When I run the npm install command the package-lock.json file is created but the node modules folder is not created or the node modules are not installed.
When I run the npm install command getting ...
-1
votes
0
answers
19
views
How can I implement a shareable link feature for notes in a simple notepad web app? [closed]
I’m building a simple notepad web app called Bloco de Notas Online where users can create and save notes. I want to add a feature that allows users to generate a shareable link for their notes. The ...
0
votes
1
answer
24
views
Retrieving a Single Numeric Device ID from a Mongoose Schema
How can I retrieve the deviceId as a single numeric value in my Mongoose schema and Express.js controller?
I'm using Mongoose with Express.js to save car records, and I've defined a deviceId field as ...
0
votes
1
answer
23
views
Node generated README file, my links in my file to generate the markdown are not actually displaying the image I have input there for the badge
I am tasked generating a readme file using node index.js. All my prompts work correctly with user input to create the README.md file except for the badge icon for the user licenses to display. It is ...
-1
votes
0
answers
37
views
React JS local hosting images stopped showing
I'm working on a react JS website that I have deployed using gh-pages. Everything seemed good but suddenly all images stopped showing locally. I don't remember exactly what caused this: changing the ....
-1
votes
1
answer
26
views
How do I display loading screen while EJS is rendering content
I'm making website using NodeJS, Express JS and EJS. In some pages, they need to execute lots of database queries and it should take long time. I want to display loading screen during this time, ...
0
votes
0
answers
12
views
Connection refused when using Sequelize with MySQL running on Docker [duplicate]
I am building a dockerized API with MYSQL. I have already set up a network between the two services but Sequelize is returning a connection refused error.
Here is my Dockerfile for the API
FROM node:...
-1
votes
1
answer
19
views
Wrapping openapi-generator inside of a node-cli?
I'm struggeling with a conceptual problem.
I'm building tooling on top of OpenAPI. For this, I'd like to create a CLI that wrapps openapi-generator.
This is an application written in Java that I want ...
0
votes
0
answers
40
views
Node js error Streaming Application in Node [closed]
node:internal/modules/cjs/loader:1228
throw err;
^
Error: Cannot find module 'express'
Require stack:
- C:\Users\Khan\Documents\project 7\index.js
(node:internal/modules/run_main:174:12) {
code:...
0
votes
1
answer
25
views
Encountering errors while running Dockerfile for React and can't able to resolve them and run the docker image,
I created a Dockerfile in my React Project created via Vite,
My Dockerfile for react
FROM node:22-alpine
WORKDIR /usr/src/app
COPY package*.json ./
RUN npm install
COPY . .
CMD ["npm&...
-1
votes
0
answers
19
views
Google Auth2.0 API rejects with IdentityCredentialError: Error retrieving a token
I'm using Google Auth 2.0 with a React frontend and ExpressJS/Node backend. I am trying to send an email using NodeMailer, but first I have to authenticate the user using the Google Auth 2.0 service.
...
-2
votes
0
answers
9
views
building a monitorng screen for multiple node scripts [closed]
I have multiple node tasks running concurrently. Each uses express to display a browser status page with different counters and metrics.
How can I build one main screen that will show info from all of ...
-1
votes
0
answers
23
views
Img uploaded won't render in ec2 instance
When I build using pnpm locally, an image shows up. In my ec2 when I do pnpm build start the image file has a 404 error. The code is the same the only difference is the environment in which it is ...
0
votes
0
answers
20
views
Getting userInfo from axios and passing it as props to child components but child components log the prop as undefined
This is the Get User API from backend which should be called in frontend using axios.
app.get("/get-user", authenticateToken, async (req, res)=>{
const {user} = req.user;
const ...
0
votes
0
answers
14
views
DNS lookup failure for: 127.0.0.1:5454api/users Apache/2.4.52 (Ubuntu) Server at api.example.com Port 443
Proxy Error The proxy server received an invalid response from an upstream server. The proxy server could not handle the request Reason: DNS lookup failure for: 127.0.0.1:5454api/users Apache/2.4.52 ...
0
votes
0
answers
21
views
Memory leak in NodeJS (NestJS) when saving application logs
I have a server application written in NodeJS (NestJS). The application uses a tracer to store nested logs, and my problem is that creating an instance of the logger class leads to a memory leak.
The ...
1
vote
1
answer
22
views
Nginx overwrites desired port when using proxy_pass on a subdirectory to direct request to node server
I have the following nginx config:
server {
listen 80;
listen 443 ssl;
ssl on;
ssl_certificate /home/tom/local.tjrhodes.com.pem;
ssl_certificate_key /home/tom/local....
0
votes
0
answers
15
views
Agora On-Premise-Recording-Nodejs build.sh Error in Dockerfile
I'm encountering build issues with Agora's On-Premise-Recording-Nodejs in a Dockerfile setup. The build.sh script throws multiple C++ warnings related to variable initialization order in ...
0
votes
0
answers
17
views
Why Does My Node.js App Time Out When Connecting to SQL Server with Windows Authentication?
I am trying to connect to a SQL Server instance from a Node.js application using Windows Authentication, but I'm encountering a connection timeout error.
SQL Server Version: SQL Server 2019
Port: 1433
...
0
votes
1
answer
24
views
Stripe schedule create 90 days (current date + 90days)
I'm facing issue while creating stripe schedule 90 days (current date + 90days) by the stripe session. After the package selection on my page it will redirect on the Stripe UI where customer can enter ...
-2
votes
1
answer
83
views
What this mean : "TypeError: Cannot read properties of undefined (reading 'toLowerCase')" [closed]
When I submitting answer then this line apprise in page and console:
TypeError: Cannot read properties of undefined (reading 'toLowerCase')
at file:///***/index.js:48:31
Here is my code :
app.post(&...
0
votes
0
answers
20
views
Solving the Issue of Multiple API Calls Triggering Script Execution
experiencing an issue in my React application where refreshing the browser causes multiple API calls to be made to the backend, resulting in the Puppeteer script being executed multiple times. This is ...
-4
votes
0
answers
26
views
Node js cancel request when user leaves page [closed]
When a user goes into a page it makes some requests, etc. to load data for a table, or in a dashboard to load multiple information.
Is there a point to detect if the user has left the page in order to ...
-1
votes
0
answers
13
views
Is there a way to embed apache superset dashboard to react and node app with keycloak as auth?
I want to integrate superset dashboard with react and node app having keycloak as auth. Although it is asking for sign in inside the embedded dashboard.
I WANT THE SUPERSET DASHBOARD TO BE EMBED IN TO ...
-1
votes
0
answers
16
views
How to Track Email Open and Click Status Programmatically Using AWS SES, SNS, and CloudWatch in Node.js? [closed]
I'm working on a project where I need to send bulk emails (around 30,000) using AWS SES and programmatically track the status of each email, such as whether it was opened or clicked. I've gone through ...
0
votes
1
answer
32
views
Unable to run NodeJS app on Azure Windows App Service
I am very new to Azure App Development and trying to deploy an simple Hello World NodeJS app on Azure Windows App Service. This is very basic Hello world app and working fine on local environment ...
0
votes
1
answer
34
views
gte and lte in prisma & mongodb
The error message "Type '{ $gte: number; $lte: number; }' is not assignable to type 'number'" indicates that you are trying to assign an object with $gte and $lte properties to a variable ...
-2
votes
0
answers
38
views
Nodes.js Installation
C:\Users\ASUS\Documents\React 01>npx create-react-app react-01
npm error code ENOENT
npm error syscall lstat
npm error path C:\Users\ASUS\AppData\Roaming\npm
npm error errno -4058
npm error enoent ...
0
votes
0
answers
13
views
Error HH604: Error running JSON-RPC server: The specified module could not be found
I want to learn how to use hardhat. When use "npx hardhat node", it always report error.I am searching for a long time on net. But no use. Please help or try to give some ideas how to ...
0
votes
0
answers
33
views
npm jsonwebtoken verifying token even with wrong secret
I have the following code (Stackblitz: https://stackblitz.com/edit/stackblitz-starters-g3vtqj?file=index.js):
const { verify, sign } = require('jsonwebtoken');
const token = sign({ id: 123 }, '...
0
votes
0
answers
16
views
verify authorization telegram not equal hash nodejs
I'm encountering an issue with verifying Telegram authorization. Specifically:
The auth_data payload I receive from window.getUser.
{
"query_id": "AAHOmFBD....",
"...
0
votes
0
answers
39
views
Express js module not found error and node modules files not creating
I ran the npm init command in the folder I was working in. Then, I ran the npm install express command. Two files named package-lock.json and package.json were created in my folder, but the ...
0
votes
0
answers
18
views
Unable to upload file to server in react-native
I've been trying to upload a file (Encrypted DJI Log file) to a server in order to decrypt it. All of this within my react native expo app.
I have not managed to get the server to accept my file when ...
0
votes
1
answer
26
views
Login Successful using axiosInstance but with bad request 400 and not navigating to dashboard
Frontend handleLogin method from react component Login.jsx which has inputs email and password and login button to handleLogin which calls the Login API from backend email and password are monitored ...
0
votes
2
answers
28
views
Firebase autogenerated keys usage in Node.js json
So I am creating a project using a Firebase database and React / Node.js to consult it.
I created a couple of entries via POST request like this:
const res = await fetch(`${MYFIREBASE}/posts.json`, {
...
0
votes
0
answers
53
views
JavaScript Fetch API Error When Sending GET Request Using URL Parameter
I'm trying to send a GET request to an API to fetch courses based on a category specified in the URL. I’m using the fetch API in JavaScript to do this, but I’m encountering an error. The code I'm ...
0
votes
1
answer
35
views
node:internal/modules/cjs/loader:453 throw err;
When I run
npm start
in the frontend server, in VSCode editor I get the following error:-
node:internal/modules/cjs/loader:453
throw err;
^
Error: Cannot find module 'C:\Users\UserA\...
0
votes
0
answers
16
views
How does the one cart checkout from multiple websites in websites like revolve or apps like Styl.AI work? [closed]
I am currently beginning to learn web/app development and was curious as to how different multi-brand aggregation platforms like Revolve or the newly launched iOS app Styl.AI do this?
Do you need to ...
1
vote
1
answer
44
views
Dropdown Select Component Has Data One Step Behind
I have a dropdown menu in my app. When it is selected it triggers a method that changes the sortOption state, which then triggers a useEffect to sort the data (called allTabs). However, the data ...
0
votes
1
answer
37
views
Azure Bot: "HTTP status code Unauthorized" Error when Using Custom Question Answering
I'm currently developing a bot that uses Azure's Custom Question Answering service. I've verified all credentials for creating the adapter and configuring the service, but I'm encountering an issue ...
1
vote
1
answer
62
views
Fetch request does not work with expressJS server (but both are working fine)?
I have a fetch request in a server component in a NextJS app. It looks like that (I tried to reduce all code to minimum working example) :
export async function bookRoom(params: BookingRequest) {
...
0
votes
0
answers
18
views
@node-rs/argon2 module could not be found in Next.js
I am trying to implement username and password login with lucia and like in the lucia tutorial I am using @node-rs/argon2 for hashing passwords but I am getting this error:
Error: The specified module ...
0
votes
1
answer
44
views
How do I include glibc versions needed by node in my buildroot config?
I'm building a root filesystem using buildroot (running on Ubuntu 22.04.4 LTS) for an ARM Cortex-A7 target. I'm including Node.js by selecting "[*] nodejs" in Target packages ---> ...
0
votes
1
answer
30
views
Working with XML in chunks node js using sax js
I try using sax js in order to process xml file in chunks , adding it to limited size of array , await to updating the DB , then reset the array.
The problem is that it not working asynchronously out ...
0
votes
0
answers
14
views
How to find out why node-tap does not exit
I was running tests with node-tap today, and I ran into the issue that my test was running forever and then timing out.
I stumbled upon a few SO threads (like this one), and it pointed me into the ...
0
votes
0
answers
10
views
Allow user to choose between peer dependencies
I'm trying to build a framework that expects a config provided by another library.
That library has two versions: @library/core and @library/react, both of which provide a function to create the ...
0
votes
1
answer
28
views
Typescript: Typing return for a "retry function" using .call
If I'm passing a typed function to Function.prototype.call, is there a way to infer the return type from the passed function?
Below I would expect response to be typed based on someTypedFunction ...
0
votes
1
answer
30
views
Importing a module created from string in Node.js using URL.createObjectURL
I want to evaluate string as a module and get this module's exports. I used to do it before in browser environment, but now somewhy I cannot use the same method in node.js
What I tried:
const ...
0
votes
0
answers
18
views
Socket IO Node JS server-side functions running multiple times on client emit
First off, I have browsed StackOverflow and read multiple threads about this, but couldn't find the answer.
The problem: Sometimes, when a user clicks a button and thereby emits a message to the ...