All Questions
Tagged with javascript node.js
177,499
questions
0
votes
0
answers
10
views
ImageKit Upload Error - ReferenceError: XMLHttpRequest is not defined
When trying to use the ImageKit API on my server side, I keep getting the following error: XMLHttpRequest is not defined. I have installed xmlhttprequest with npm and tried require('xmlhttprequest') ...
0
votes
0
answers
8
views
React App Audio Processing Error on iOS Safari but Works on Desktop and Android
I have a web application deployed on Vercel (frontend) and Railway (backend). The app allows users to upload video files, from which audio is extracted and processed. The application works perfectly ...
0
votes
0
answers
14
views
Node.js memory leak error in Next.js server-component
I have this ts code that give me memory leak error every time:
type Conns = {
name: string,
platform: string,
jobs: job[]
}[];
type UserType = {
id: string;
email: string;
...
0
votes
0
answers
7
views
primevue components not available in custom npm package [Vue warn]: Failed to resolve component
I want to create an npm package that will render a textbox and a button.
In this npm package, I want to use primevue Button component.
This is the published package link: vue-main-package
I use this ...
0
votes
1
answer
9
views
Switch the Database of the default mongoose connection
In trying to limit the number of connections in my web application I switched from using mongoose.createConnection() to mongoose.connect()
Which works perfectly if your only ever using one database. ...
-1
votes
0
answers
10
views
My Vercel-deployed website with Node.js doesn't update when GitHub repo is updated
I have this problem with all my Node.js websites deployed in Vercel. When the GitHub repo that's linked to the project is updated, Vercel will say that yes, that last commit is deployed. But when I ...
-1
votes
0
answers
14
views
Some S3 Object URLs Download When Clicked While Others Don't
I have noticed that when I upload a file to S3 using my Node.js app, the Object URLs of the file download when clicked, but if I upload a file manually it is viewed and not downloaded.
I only want ...
0
votes
1
answer
22
views
Jest toHaveBeenCalled() doesn't work for me
I am mocking up some function:
export const natsWrapper = {
client: {
publish: jest
.fn()
.mockImplementation(
(subject: string, data: string, callback: () => void) =>...
0
votes
0
answers
14
views
jsPDF png and custom ttf broken when using output()
I'm currently working on my first jsPDF project, and it's going great, accept for one issue ...
On the clientside, I'm generating a PDF which then gets sent to a local REST API.
Saving the PDF locally,...
-3
votes
0
answers
12
views
Node.js Video Upload Feedback Project Not Working on iPhone
I'm working on a project where users can upload their videos and receive feedback using the Gemini and OpenAI APIs. The frontend is deployed on Vercel, and the backend is on Railway.
The project works ...
0
votes
0
answers
8
views
How can i use google api key in the custom GeoThreeExtension in autodesk forge viewer
hree = THREE;
// Ensure 'three' is defined if needed: three = THREE;
class GeoThreeExtension extends Autodesk.Viewing.Extension {
constructor(viewer, options) {
super(viewer, options);
...
0
votes
0
answers
18
views
Doesn't work handling "JavaScript heap out of memory" error in nodejs/nestjs
I have nestjs app and it crashed with "out of memory". I increased memory ofc, but I need to handle this error also. I tried to make a primitive example of nodejs(macos if it depends) and it ...
0
votes
1
answer
25
views
Why is the below piece of code giving error when I add console log line and working fine if I remove it?
The code below works fine if I remove the console log line but not with it
function gcd(a, b) {
while (b !== 0) {
console.log(a,b)
[a, b] = [b, a % b];
}
return a;
}
...
0
votes
0
answers
12
views
Error while parcel watch: You gave us a visitor for the node type StaticBlock but it's not a valid type
When i am trying to run: "parcel watch ./public/js/index.js --out-dir ./public/js --out-file bundle.js" i get this error. I've tried answers of this question but it didnt work.
index.js:
...
0
votes
1
answer
27
views
Amazon Inspector not detecting code vulnerability with transpiled Typescript file to Javascript on Lambda function
We created a test Typescript with an obvious code vulnerability (hardcoded credentials). AWS Lambda doesn't support Typescript so we transpile it to be Javascript. We then export our zipped build file ...