Category "javascript"

cannot find module '@babel/generator' but it installed

i have " cannot find module '@babel/generator' " error while trying generate signed apk. But i installed this package using yarn add, this is part of my package

How to use TypeScript and forwardRef in ReactJS?

I'm having a problem when using forwardRef with TypeScript. What I want? pass a typed ref to the child component. What am I getting value of console.log - child

Is there a way to change the react-chart-js tooltip only on a graph?

I have the following: const labels = historicosData.map(historico => { const localDate = new Date(historico.fechaIngreso); return localDate.toLo

How to freeze request to test that components are disabled using Cypress?

I'm using VueJS and Cypress to test the app e2e. I have a modal where user fills a form and click on the "send" button. When user clicks on that button, we disa

How to shield the internals of a Lerna package, so other packages cannot import them?

I am working with a Lerna monorepo. I often see one package make imports from deep inside another package, for example: import { SomeType } from "@schema/folder

Extract individual PDF from a portfolio of multiple PDF documents

I have a web application built with PHP and JS. In this app I make different operations with certain files and i encounter the next problem: The user needs to u

Attempting to create a dynamic react pdf report generator based on params

Code below: codesandbox.io/s/muddy-monad-zqwt73?file=/src/App.js Currently, unsure why, the pages are not making it into the document and an empty Document is r

Uncaught DOMException: An attempt was made to use an object that is not, or is no longer, usable when accessing available var

I'm writing a client that communicates with a websocket server. Currently, the socket server sends a generated "token" to the client, which then sets it in stor

Getting duplicate results from DB

let absent_remove = result_database.filter(item => item.absentday != absent_days) console.log("absent_remove", absent_remove); I got this piece of code, I h

auth.currentUser shows undefined on HomePage

I have a file where I have written all the firebase related functions, including this one here function CurrentUser(){ console.log("auth", auth) return auth.cur

unable to show error and error message on MUI datepicker

I'm using react material-ui (MUI) I want to show an error on some condition that will calculate on the backend. I used MUI-datepicker but I can't show error imp

How to handle nested frames from content script to background script?

I am creating a webextension for Firefox, aiming to collect data in a browser game. I've started with a simple test to manage injections and communication (with

Responsive nav bar not sticking on some screens

I am having a problem with the taskbar on my webpage. It is "sticky" on scroll down on a laptop screen, even when I resize the window to a size where the nav me

How do I change slate editor value using Javascript (DOM manipulation)

I want to change the text in the slate editor using DOM manipulation via Javascript. Dynamically change the values filled into editable components in a particul

react-router-dom router change the url but nothing else. All of components are not changed

I can't solve why it doesn't work. When I clck on the link new page the url is changing but the page not (it should change to new page with div witch some conte

How to create fixed scrolling in Locomotive Scroll in Next.js

I'm currently using Locomotive Scroll with NextJS to implement smooth scrolling. The web app that I'm currently developing with NextJS requires a fixed scrollin

How to make useEffect listening to any change in localStorage?

I am trying to have my React app getting the todos array of objects from the localStorage and give it to setTodos. To do that I need to have a useEffect that li

Javascript: How would you get the highest rated product category based on these 2 arrays

Assuming I have 2 arrays: const products = [ { name: 'prod1', category: 'Meat' }, { name: 'prod2', category: 'Meat' }, { name: 'pr

JavaScript event.preventDefault() submit button data in _POST

There is something I can not seem to find documentation on: I have this form with multiple buttons. The buttons have their own actions associated with them and

Set larger width than 500px of tooltip in extjs grid cell

i have a grid cell with a very very large text inside. I want a tooltip which shows the whole text, but the tooltip is everytime only 500px large and cuts the t