All Questions
9,353
questions
-1
votes
0
answers
23
views
Node Media Server Problems
I'm trying to setup a livestreaming website and I'm encountering problems when trying to host node media server on my Ubuntu 20.04 VPS. Basically whenever the user starts the livestream it works when ...
-3
votes
1
answer
39
views
how to connect the front end with my backend page
I have created a frontend page which has got a send email section which I want to connect with the server side page which is the email page. How will I integrate the server side code with my frontend ...
0
votes
1
answer
29
views
Cannot define variables in TS file with input elements from HTML
I'm trying to run a ts/js file from a button in an HTML file.
I'm using TS and node js.
this is a bit of code where I get the error
document.addEventListener('DOMContentLoaded', () => {
const ...
0
votes
1
answer
51
views
CORS Error: Getting error while trying to get info of user email and password for frontend
I have a localhost port 1000 for backend. For frontend, the port was 5173
Now to access form data from backend, I used CORS to request from my server, but it is showing me Error 401: unauthorised, ...
0
votes
0
answers
22
views
How to render filtered messages?
I'm working on a real-time chat project but I'm having issues rendering the filteredMessages when a user searches for a term in their conversation. The messages are correctly filtered when I right the ...
0
votes
0
answers
34
views
WebRTC: Cannot connect peers to watch livestream from other client
-I want to make a server that can receive data sent from the client. The client can be the person broadcasting the live video or the person who wants to watch the live video. Connect the clients ...
2
votes
2
answers
33
views
Issues with Image Upload in Express.js Using Multer
I am developing an Express.js application and trying to add the facility of image upload by Multer. I am getting some issues, so any kind of help will be appreciated.
Problem:
The file doesn't upload, ...
1
vote
0
answers
35
views
Why does my `updateCartUIWithNewData` function fail to update cart items correctly in vanilla JavaScript?
I'm working on an e-commerce website and trying to update the shopping cart UI when the cart data changes. I have a function updateCartUIWithNewData that is supposed to handle this, but it doesn't ...
0
votes
0
answers
31
views
Error 401 on GET method, 401 (Unauthorized)
I'm making a request to AccuWeather's public API, first there was a problem with cors but I solved it, now it's giving me an authorization error, what do I do?
import React from "react";
...
0
votes
1
answer
18
views
Nodemailer contact us form
const transporter = nodemailer.createTransport({
service: "gmail",
auth: {
user: "[email protected]",
pass: "password",
},
});
app.post("/api/send", (...
0
votes
1
answer
26
views
Angular PWA and NodeJS backend
How can I configure an Angular PWA to ensure it continues making requests to a Node.js backend when the service worker is offline?
This is my ngsw.config.json
{
"$schema": "./...
0
votes
0
answers
61
views
How to convert html view to pdf using jspdf npm library?
When i am using jspdf library to convert the html view to pdf its giving me below error.
TypeError: Method Promise.prototype.then called on incompatible receiver #<WrappedPromise> at Promise....
0
votes
2
answers
61
views
How to implement this npm library with javascript and NodeJS
I'm getting back into internet programming after taking a class on it a few years ago and I'm trying to implement a library into my website.
For this project, I want to use these animated diagrams of ...
0
votes
1
answer
87
views
How can I take a RAR file and dynamically generate a gallery in Node.js?
I need to create an HTML gallery dynamically without saving the files to disk. I need to retrieve data from individual RAR files or split RAR files (e.g., rar, r01, r02, r03, and so on) and generate a ...
-1
votes
1
answer
58
views
How to prevent Express from adding a slash to the route of the URL
I noticed that when I have a route and a sub directory of the same name Express / Nodejs will change the URL when visiting that page in the browser.
For example, if I have a route named foo and then I ...