Category "node.js"

How to get Realtime Logs in Elastic beanstalk like Heroku

I am moving from Heroku to Elastic Beanstalk as advised by some team I am working with. Now, when I was with heroku I got the benefit of real time logs as reque

chrome-aws-lambda + lighthouse always results in NO_SCREENSHOTS

I am trying to run Lighthouse via Puppeteer in a public.ecr.aws/lambda/nodejs Docker image using chrome-aws-lambda, and no matter what website I send to Lightho

How do I redirect to Google's consent page for Oauth2.0 in NodeJS Web app?

So I am creating an application with NodeJS and Express and some HTML. Basically after the user clicks login, it is supposed to make a GET request to the follow

How do I make a command in Discord bot in js that insert data in a database with Sequelize?

I'm working on a Discord bot using node.js modules and Sequelize to database, and I want to add a command that users type and the bot registers them in database

Npm not working (openSSL configuration error windows10x64)

I was getting this error whenever I try the npm command in powershell: **~ $ node -v v17.1.0 ~ $ npm -v OpenSSL configuration error: 74240000:error:80000003:sys

Unable to start fresh wiki.js install on my virtual server

I am trying to install the latest wiki.js version 2.5.170 on my standalone virtual machine running Centos 7 https://docs.requarks.io/install/linux Nodejs is als

Heroku Slug Size too large - nodejs

This is my first heroku app... and I see that my heroku slug size is 296MB... getting uncomfortably close to the fast 300MB boot time. This is a puppeteer app w

TypeError: (0 , _expressGraphql2.default) is not a function

Trying to create a server for my application using graphQL server, but keep getting the error below. I have tried debugging with similar issues on this site but

mongodb functions from node workers. Cannot read properties of undefined

Trying to save some data into mongodb via node workers. I tested my crud api and that wprks but when I make the call via node worker its coming up undefined. I

Pino logger custom destinations based on log level and logging on nodeJS console

Im having a hard time logging on Stdout and logging in file. Is there a way to log on stdout based on log level and at the same time log in file? As of now, my

request url return errno: -3, code: 'Z_DATA_ERROR'

I have used three lib to request url return same error URL:https://comment.bilibili.com/558679896.xml Axios Error: Error: incorrect header check at Zlib.

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