Category "node.js"

How to load site with scroll

I want to ask how to load the site data on scrolling. Thank you.

Unable to integrate Stripe checkout into Vue JS app

I am trying to redirect to stripe checkout using a click event that calls the payStripe function <button @click="payStripe" class="btn btn-primary" type="but

res.set('Content-Type','image/jpg') is not working while serving image in node js

res.set('Content-Type', 'image/jpg') is not working while serving us files in node js. Please take a look at code what is wrong with this code. I am getting the

how to use .env file in a react js with typescript project?

I have a react js project , but with typescript. I understand we can create .env file and have some configuration defined as such, .env file REACT_APP_SOME_CONF

How to show a popup modal on page load in React js functional component

How to show a popup modal on page load in React js functional component.basically when the page loads the popup or modal should be visible automatically without

How to update mkdir in order to install express-generator without warnings?

I was going to install express-generator on windows computer. I used thisnpm install -g express-generator command in cmd and it gave me thisnpm WARN deprecated

Get the rudder rotation angle of the robot's compass

there is an electronic compass with angles of 1-360 degrees (or 0-359, whatever) https://i.stack.imgur.com/Q7RmH.jpg there are variables Yaw - compass readings

Why I am getting this error: declares '<MODULE>' locally, but it is not exported

I have a typescript file which exports a function to send emails using aws ses //ses.tsx let sendEmail = (args: sendmailParamsType) => { let params = {

how to do the update when my key is called key

I have a problem with an update in dynamoDB , when performing the update in dyanamo it tells me that I cannot use the key keyword "message": "Value provided in

Sign in with Apple implementation with Angular

I am trying to implement Sign in with Apple in Angular website. The flow of implementation starts with adding in the index.html file. Then created a service ca

node js puppeteer How do I scrape values ​from duplicate selector?

I want to scrape the value, but its selector is duplicate, I don't know how to solve. It will always scrape the value of the one above. here my code: const pupp

puppeteer bypass cloudflare by enable cookies and Javascript

(In nodeJs -> server side only). I'm doing some webscraping and some pages are protected by the cloudflare anti-ddos page. I'm trying to bypasse this page. B

Delay for messages in node-telegram-bot-api

I am working on a telegram bot with the node-telegram-bot-api library. I made 2 buttons using keyboard. But when you click on them a lot, the bot will spam and

Am trying to get data from an atlas file

am trying to get data from an atlas file the way I do with json files but it's not working, please can I get help const jsonFile=require("./Assets/AquaSpawn/Aqu

Remove generated string from Mongoose schema with custom validation

I have a schema with a custom validation. const schema = new mongoose.Schema({ username: { type: String, required: true, validate: {

Error: connect ECONNREFUSED Nodemailer Ethereal

I have an error when trying to use the example from nodemailer. I modified it a little bit but it has all of the same core. When I try to run it I get this erro

error in using ESM Package of "auto-bind" in node.js project

I have a Node.js project. I want to use auto-bind package @v5.0.0. The versions above v4 , are ESM type. so can't use then by require('') . but my Node.js proje

How to call a smart contract function with WalletConnect? (React.js, Node.js)

Is it actually possible to call a smart contract function using WalletConnect? There is a documentation on official website that explains how to establish conne

Somebody knows how to solve 401 Unauthorized error with Clockify API using axios and node js

Does someone know why I'm getting a 401 Unauthorized error when I try to post a request to add a time entry even though I have added my API key? I'm using Axios

Discord.js how can bot ping when someone with a specific role leave

I made a bot and I want to add a feature to my bot. ping a specific room when people with a custom role leave the server. So, for example, we'll know when peopl