Category "javascript"

Formik onChange is not working for dropdown using react-select

Below is the code where I am trying to select value from dropdown. handleChange is not working, when I select the value from dropdown it's not getting updated w

Difference between Web Streams and Node.js Stream APIs

I'm building a file upload application to familiarize myself with the concept of streams. I'm trying to turn a file list or blobs into a stream then upload it t

MongoDB Scheduled Trigger Save Error -- What to Return?

This problem is very annoying. So, I am making a scheduled trigger run every 24 hours. It simply gets items from one collection does some data processing then a

React Native: How to get upload speed and network signal strength?

I am currently tasked with developing an application that gives the user various information and details about his network connection using React Native. The ma

How to change the back of video in vonage

Members, I am using Vonage API for video calling. I want to change the video background, Can anyone guide me on this.! Looking forward to hearing from you!! Tha

react-scripts build generates wrong path for sub folder

My application should be served at /sub-folder so in the package.json the homepage field is set to "homepage": "/sub-folder/", The production bundle generated

Typed Indexing variable is not of the same type as the object being indexed

I have a slightly complex object that has typed keys on the top-most level of the object, as well as the deepest level of the object, and I can't seem to be abl

How to push heroku app with hyper ? getting error

I tried these commands: error: src refspec main does not match any error: failed to push some refs to 'https://git.heroku.com/young-brook-98064.git' Where did

Display/ Hide Markers on Video based on current time Javascript

I am trying to implement a function that displays/ hides markers (could be subtitles, highlighted area) based on "timeUpdate" event which tracks current time. M

jest is failing to find `bota` and `atob`

Creating a jest test like: test("btoa", () => { expect(btoa("aaa")).toStrictEqual("YWFh"); }); fails with ReferenceError: btoa is not defined however, no

Vuex/quasar - mutate state from firebase 9 on boot

I'm using quasar with firebase 9. I'm trying to set the state with actions during the boot of the project. I have data in firebase that I want to load only once

How to use OAuth 2.0 flow in Google One tap Sign In?

I know that I can use the access token that I receive in the response can be use to authenticate users. But I want it to be more secure So I want the code that

Matching Cards -Cards don't show correctly

I want to create a matching card game in JavaScript. Firstly,i just want to generate 12 random cards into the body. When I press Start Game,the container is f

Is getting Ansible to work with Pulumi possible?

I wish to create several droplets (DigitalOcean) in a loop and then run Ansible afterwards on the droplets to setup the required software and security measures.

how to add dots(ellipses) in between the pagination numbers in jquery

I have a pre-generated html for the pagination numbers , which basically comes from the backend CMS based on the number of items present the html looks somethin

How to set the background color of Tab.Navigator?

As you can see below, I've tried many ways of setting the background color to green, all to no avail. The background remains blue like the image. The inactiveC

Iterate through array 1000 items at a time in an array of thousands

I want to loop through an array consisting of thousands of items. I want to process thousand item at a time. Is there a better way to achieve this ? const a = [

Three.js error --> THREE.Scene is not a constructor

I can't execute my code because of this error: TypeError: THREE.Scene is not a constructor I use the three.js file from the official github repo and here are

Regular expression for cleaning up strings

[UPDATED] In an effort to clean up an array of strings that contains people names as well as other titles or user IDs (if present), I need to remove any non-let

Input field validation in React Js?

I am having a variable (in real app it is api) called data which contains value as nested items. From the level 1 it has title which is displayed already then