Questions tagged [node.js]
Node.js is an event-based, non-blocking, asynchronous I/O runtime that uses Google's V8 JavaScript engine and libuv library. It is used for developing applications that make heavy use of the ability to run JavaScript both on the client as well as on the server side and therefore benefit from the re-usability of code and the lack of context switching.
node.js
473,240
questions
-1
votes
0
answers
12
views
Localhost on VPS "CAN" be accessed externally? Change to 127.0.0.1 then can't
Greetings from a newbie.
I am using a VPS shared with others, say VPS' IP 5.5.5.5. I have set up a Node/React app and it runs at http://localhost:3000. I am surprised that I can externally access the ...
0
votes
0
answers
4
views
Mongo DB Atlas | Aggregation not getting response
Am doing a personal project and using MongoDB Atlas for storing documents. I have the below code
app.get('/admin/dashboard', (req, res) => {
console.log('Received request for admin ...
0
votes
0
answers
10
views
Axios keeps on calling 'onUploadProgress' although upload has finished
I have a super simple file upload functionality implemented with nextjs.
The files need to be uploaded vai presigned url to AWS S3.
The upload works fine but, showing the a progress by utilizing ...
0
votes
0
answers
5
views
REplit + Node JS - How to override local file JSON data
My code snippet works with node js but my actual file “LOCAL_JSON_FILE_PATH” does not update with the new data. I want to remove old data from the file and import new data at set times.
My code works ...
0
votes
0
answers
8
views
Podman build nextjs stuck in Creating an optimized production build
I'm building a linux/amd64 version of the nextjs project on my local machine on the m2 chip, but it's stuck and not moving, without any error messages or logs. This problem has been bothering me for ...
-2
votes
0
answers
12
views
html-pdf library , pdf create method, not working, not able to create pdf using this lib
html-pdf: Received the exit code '1'
html-pdf: Evaluation - ReferenceError: Can't find variable: $
Stack:
at undefined
When i am trying to create pdf using html-pdf lib , using below then i am ...
-5
votes
0
answers
16
views
whenever I use Yarn run dev on my terminal for backend code, it is throwing (reading "fragment") error!!! what could be the reason? [closed]
I am getting the following error on my terminal..after typing yarn run dev..
yarn run v1.22.22
$ set NODE_PATH=%NODE_PATH%;./src && ts-node-dev --respawn --transpile-only ./src/server.ts
[INFO]...
0
votes
0
answers
13
views
Nativescript ns clean error. Giving error Unable to start Cleanup process. Error while reporting exception: Error: Unable to start Cleanup process
I am working on nativescript project version 8.7.2. Node version - 22.2.0.
Getting issue with command ns clean. ns build android or ns run android commands are not working.
ns clean error image
Not ...
0
votes
0
answers
14
views
NextJS server - execute code after starting
Is there any possibility to start nodeJs code (inside the app) when the nextJS 14 server starts (or re-starts)?
In development mode:
npm run build
npm run dev
In production mode:
node server.js
...
0
votes
0
answers
12
views
MongooseServerSelectionError: connect ECONNREFUSED ::1:27017, connect ECONNREFUSED 127.0.0.1:27017
my main file
const express = require("express");
const path = require("path");;
const app = express();
const hbs = require("hbs");
require("./db/conn")
const ...
0
votes
0
answers
5
views
The .docx file modified using 'docx' module on opening shows "The open office xml file cannot be opened because there are problem with contents"
I am using docx module to modify a word file. It works well for inserting a text, paragraph, link, etc. But breaks on inserting a table. It shows the error "The open office xml file cannot be ...
-1
votes
0
answers
9
views
anchor tags not visible once i deploy my react app on render
I have been trying to deploy my react app on render , its just a frontend website ( my portfolio ) , but the buttons with project links just wont show while deploying the site on render , they are ...
-2
votes
0
answers
22
views
Next.JS Getting a 500 Server Error When Trying to Submit my Form with Nodemailer
import { type NextRequest, NextResponse } from 'next/server';
import nodemailer from 'nodemailer';
import Mail from 'nodemailer/lib/mailer';
export async function POST(request: NextRequest) {
...
-1
votes
0
answers
11
views
Understanding Star Rating Discrepancies in Google Search Results Despite Proper Schema Markup
I implemented schema markup in my React code and deployed it to my server. The pages are currently indexed. When I search for the indexed pages using 'site://sitename.com', I see the results, and the ...
-3
votes
0
answers
22
views
i getting this error RangeError: Maximum call stack size exceeded [closed]
in the serviceA and serviceB both are depend on each other like i'm used the serviceA in ServiceB and serviceB in serviceA so its give me this error. i'm used the singleton class approach is any other ...