Category "javascript"

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

Nightwatch JS | Looping/Iterating through Table

I've been working with Nightwatch for a few months now, using the page object method to try and make my tests as modular as possible. I've ran into a block on m

Nightwatch JS | Looping/Iterating through Table

I've been working with Nightwatch for a few months now, using the page object method to try and make my tests as modular as possible. I've ran into a block on m

the require function doesnt works and i tried node.js and it still doesnt works [duplicate]

So when i launched my website it tells that the require function isnt recognized i think that its cause its a node.js function but when i trie

Displaying javascript calculated variable output as currency

I currently have a variable that is made up of two calculated variables. How ever I need to display the outputted variable as a currency which includes thousand

React App adding Pure CSS to Tailwind CSS

I need to do this in tailwind CSS for my react application. How can I do that? HTML <h1>Show / Hide Animation with pure CSS</h1> <label class="t

CSS display change AND redirect in a text input field

I am working on a form which should redirect the user to a different page based on what they input in the text field but I also want to display hidden div style

add multi text to tooltip based on condition (for loop) - Javascript

In the following project, I have the array_num[] which holds the line number of the textarea ( the line number of errors that I want to detect) because I'm buil

How to make path for pages in NextJS case insensitive

I have a file under the pages folder named about.tsx. So the path for the page is /about and I'm able to access the page by visiting example.com/about. However,

the require function doesnt works and i tried node.js and it still doesnt works [duplicate]

So when i launched my website it tells that the require function isnt recognized i think that its cause its a node.js function but when i trie

How can I have Minify/uglify inline JavaScript using Pug?

I am using Pug for a web page that I am building. At the end of a module I have a script. tag (the regular script tag cannot be used because it isn't compatible

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

How to run google app script at exact time?

Currently, I want to run my google app script at exact time. I have already do some reading about this problem and I decide to follow the solution in this post

Function that tests if React PWA is online never returns false

I'm using ReactJS to create a progressive web app. My app needs to determine if it is able to connect to my server so that it can know how to handle submitted d

how could I draw a rectangle inside an image using Angular using canvas?

I need to draw a rectangle inside an image recording to x,y. I used a canvas tag and inside it I used an img tag but the image didn't appear because the canvas

VSCode does not auto-import from "react" in Next.js projects

* This is not a duplicate of this question; the accepted answer there is made for TypeScript and doesn't seem to work for JavaScript. I am working on a Next.js

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

TypeError: Cannot read properties of undefined (reading 'includes')

TypeError: Cannot read properties of undefined (reading 'includes'). I got this mistake, but I can't get through and solve the problem. Error shows this line