Category "javascript"

single glob pattern to target all .test/.spec files TSConfig

I would like to exclude all test files in tsconfig.js. Files that should be excluded *.test.ts *.test.tsx *.test.jsx *.test.js *.spec.ts *.spec.tsx *.spec.jsx *

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

I just upgraded to Google Chrome 100.0.4896.127 and I'm seeing the following error in my Angular 13 application in the console: Uncaught TypeError: Cannot read

how to send ObjectID with ajax to backend (Node.JS) [closed]

font-end code(HTML, Javascript) I want to make delete button but i can't send ObjectID with ajax var retName = $(this).data("row-id"); $.

Javascript countdown timer should stop at 00:00

I am working on the countdown timer and I have found this code which pretty much what I need except I dont want to restart the timer when it reaches 00:00. I tr

How to implement continuations in dynamic language like JavaScript?

I need some hits how I should go about and implement continuation for lips in JavaScript (my lisp is almost like scheme, except no continuations and TOC). Here

How to display/get the entire list of objects.Console.log() displays only first object

I am getting message on console. "This value was evaluated on first expanding. The value may have changed since then." Is there a way I can collect all objects

How to test quasar component with cypressjs?

I use quasar to build my webapp and I have question regarding testing components with CypressJS. I am using https://quasar.dev/vue-components/select#Example--Ge

Unable to load a specific URL with Cypress

I’m unable to load the following URL with Cypress. Getting timeout error. I have set the page load time to 2 mins, still same issue. General URLs eg. (htt

How to scrape an image src using puppeteer in NodeJS?

I'm trying to scrape the source of the first image with a specific class. On the page, there are multiple images with different additional classes but they shar

Webstorm doesn't recognize next js

I'm creating a next JS app using this command npx create-next-app my-app --use-npm And everything is installed successfully, but in WebStorm for example when I

Discord.js bot not logging in

I made a discord bot and i have no idea what's wrong with my code i mean look: const Discord = require("discord.js"); const client = new Discord.Client({ i

Importing SVG as React component not working with Next.js

I created a project with create-react-app using Typescript and latter I was asked to add next.js to it, what happend was that it broked some svgs across the app

How can I toggle an element's attributes using pure JavaScript?

Most of the similar questions that arose as I wrote this one were like this (where the user wishes to toggle an element's class using pure JS) or this (where th

Expanding animation on click

I'm facing a problem right know about css & javascript animations, let me explain, I have two columns with a box of information and a button to "see more" o

How to filter chat on whatsapp web using content script?

I am actually creating a chrome extension which creates some tabs in whatsapp web like all, unread, groups etc. And when we select any of these tabs it will fil

How to set schema with node-postgres

I'm trying to query against a schema called DOCUMENT in my postgres db using node-postgres. I can't seem to get a query to run against the specified schema. T

React Native FlatList with custom buttons, how to change color on click?

I have created a FlatList that renders names. Each row has its own button. When you click the button, the name is added to a list and the button should change c

Automatic refresh in browser according to saved modifications

Does somebody know how to automatically refresh a webapp turning on Apache in the browser, according to modifications of front end files? For instance I only k

Automatic refresh in browser according to saved modifications

Does somebody know how to automatically refresh a webapp turning on Apache in the browser, according to modifications of front end files? For instance I only k

Uncaught TypeError: inputArgs[0].match is not a function

I am starting to learn to react with REST Countries API. I have to face the error "Uncaught TypeError: inputArgs[0].match is not a function" in console. also, c