Skip to main content

All Questions

Tagged with
-5 votes
1 answer
41 views

Running web3 in NodeJs enviroment [closed]

When I attempt to import web3 in NodeJS enviroment while on the project directory I get undefined error. > const { Web3 } = require('web3'); undefined > const web3 = new Web3('https://eth-...
Ahmed B's user avatar
  • 49
0 votes
2 answers
41 views

Node gives me as version: v23.0.0-nightly2024071586415e4688

I am trying to update node on UBUNTU (version 22.04.4 LTS) and have followed the official procedure on their site: # installs nvm (Node Version Manager) curl -o- https://raw.githubusercontent.com/nvm-...
Luca's user avatar
  • 353
1 vote
1 answer
22 views

Getting unexpected/not_present elements/tags while scraping in node js with cheerio

I am scraping and parsing the content of web page (https://www.mydealz.de/new). Structure is like follows. <div class="threadGrid-title"> <strong><a href="">...
Muhammad Kazim's user avatar
0 votes
0 answers
13 views

How to resolve "SSL handshake failed" error when using Penthouse Critical CSS generator (on Node.js)?

I want to create a Gulp task that generates a file with my site's Critical CSS. Penthouse seems to fit exactly what I need. I can achieve generating the Critical CSS file with http://google.com, and ...
MeltingDog's user avatar
-3 votes
0 answers
23 views

Refused to execute script because its MIME type error [closed]

I'm trying to link a javascript file to a html file that is being render by my server at the route '/'. However when the html file is loaded in the browser I get the following error: I tried using ...
Luigi_S_R's user avatar
0 votes
1 answer
23 views

Puppeteer: @puppeteer/browsers .install 404 (not working)

I'm working on a project that bundles a repo to an .exe using Node SEA. Bundling puppeteer causes me to need to install chrome myself, so I've switched from puppeteer to puppeteer-core + @puppeteer/...
BinarySolo's user avatar
-1 votes
0 answers
33 views

Node http server response fires twice for every request; first with correct params then with undefined params

I've already ready the other post(s) related to node http requests firing twice. I believe this is different. I scripted a demo that uses a child process to read from a sqlite db and wired that ...
fitsum's user avatar
  • 1
1 vote
0 answers
33 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 ...
BrainDebugger's user avatar
0 votes
0 answers
14 views

Cara membuat terminal emulator [closed]

$(function() { $('body').terminal({ x: function(cmd) { ///code ///code } }, { prompt: ...
Muhli Pic's user avatar
0 votes
0 answers
28 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"; ...
Gustavo Lacerda's user avatar
0 votes
0 answers
11 views

Nodemailer contact us form

const transporter = nodemailer.createTransport({ service: "gmail", auth: { user: "[email protected]", pass: "password", }, }); app.post("/api/send", (...
Bikkey_11's user avatar
0 votes
1 answer
37 views

getting 404 not found error when nesting routes in express js

I'm working on rest api for my application and I have problem with nesting routes in express. I have nested routes and when I try to send request to nested url express sends back 404 not found. index ...
Kamil's user avatar
  • 1
0 votes
0 answers
37 views

Is there a way to keep my program alive if the server it needs to connect to is not up and listening yet?

So I've been trying to figure out how to keep my program alive if this separate server that I'm running is not open yet. Right now my program's site pulls up successfully but then the second I try to ...
Nash Carroll's user avatar
-2 votes
0 answers
59 views

Unexpected token (254:15) while parsing..\node_modules\marked\library\marked.umd.js while parsing file

Trying to upgrade for marked version 13.0.2 and getting following error in debug console when run npm run watch:client. Unexpected token (254:15) while parsing .. node_modules\marked\lib\marked.umd.js....
Test123's user avatar
0 votes
1 answer
23 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": "./...
zimmer098's user avatar

15 30 50 per page