Category "javascript"

Having trouble adding a callback function from the main.js to the renderer.js after button click in another window

Hi at the moment i have used the ipcRenderer in one of my JS files to execute a function in the main.js. This code executes without a problem. What I'm trying t

JS VIDEO | DOMException: Could not start video source

I want to get a video from the webcam using JS but no footage. MESSAGE: DOMException: Could not start video source App.js const video = document.getElem

'cypress-promise' library is not working as expected

I have tests in which i used the cypress-promise library. I have included promisify in that to wait until my commands are executed and give response. in my file

NestJS: Is it possible to call a third party API inside a guard?

I have create a guard to verify Okta tokens in my guard.However to verify there is another external api that needs to be called.Is it possible and advisable to

Avoid uncaught exception when a promise gets rejected due to timeout?

I have a situation in my node.js program where I have an array of promises. I am prepared to wait a maximum of 200 ms for each promise in the array to get fulfi

Jest Call retries were exceeded

I have error in the following below test. My node version is : v12.10.0. is there any alternative of setTimeout? test('demo code', async () => {

Multipart form parse error - Invalid boundary in multipart: None content-type issue?

I am working on simple CRUD with react and react-redux and having trouble with POST in client sideBoardList.js import React, { Component, Fragment } from 'reac

How to stop focusing after closing the button

I have a button in my navbar and when I press the button it opens a drop-down menu, so my question is how to stop focusing and the effects on my button when I p

How can I export a JSON object to Excel using Nextjs/React?

I have an endpoint that retrieves a json object like the following: "data": [ { "id": 1, "temaIndicador": "Indian", "codigo": "001", "observaciones": "Interacti

can i use "amazon-cognito-identity-js" for federated authentication with cognito

I use "amazon-cognito-identity-js" javascript library to integrate Cognito for my react app. it seems that only supports email/password authentication only. I w

Is there a way to have two docs in Docusaurus 2?

As I know, Docusaurus supports customized pages, but is there a way to have two docs in one Docusaurus project? The original Navbar items have: Docs Blog ...

Error: export 'default' (imported as 'Swal') was not found in 'sweetalert2' (module has no exports)

I am trying to include sweetalert2 in my Angular project, but it gives compile time error. The error /src/app/pages/signup/signup.component.ts:29:16-25 - Error

How can I pass function as an argument in javascript?

I would like to create a sticky element that disappears when a certain div (bottles) get to bottom of the screen. I have this code that works: function update()

Firebase Import Error : initializeApp was not found in firebase/app

I am building my first firebase app using JS and Webpack. I'm following the modular approach. I have followed the documentation and forums for this, However I c

React I have an endless loop rendering my edit component

I have two components. My dashbord-component, in which I am dispatching the getAllDropDownRessort, which triggers the findAll function in my dropdownRessortSlic

Discord radio bot randomly disconnecting

Djs (v12) Maybe someone is already familiar with this problem in their code and knows the solution. After a few hours of listening, the bot just randomly stops

form data is showing empty after append

$('#submit2').click(e => { e.preventDefault(); var form_data = new FormData(); form_data.append('newKey1', 'newValue1'); form_data.append('newKey

How can I use Bootstrap 5 with Next.js?

After installing bootstrap with npm install bootstrap I added the style to /pages/_app.js like so: import 'bootstrap/dist/css/bootstrap.css'; export default fun

azure function outgoing service bus message with correlation filter

I have an azure function that I want to send a message to a service bus that has a correlation filter on it. Specifically the correlation filter is on the labe

Renaming cypress screenshot

I am trying to rename the screenshots created for my failed cypress tests. I followed the example of the documentation https://docs.cypress.io/api/plugins/after