Category "javascript"

How to iterate over a map in pug

I have a map that I am passing to pug on my server but I am unable to iterate over the key value pairs in the map in order to render the data in the map. I have

HTML Javascript buttons not responding while clicking

Whenever I click the increment button , it doesn't show any output on the VS code terminal block. It just shows the following output "if ($?) { start Firefox pE

expo map and camera are not working after building apk React Native but working fine during Development and testing

When I’m testing my app inside expo app everything works perfect! But, when i build a android binary using expo build:android the camera and camera roll s

How to cancel a specific request in Cypress?

I am using Cypress for web testing, the web page I am testing uses Facebook and LinkedIn plugins which they are not important during the testing but they won't

How to fix `TypeError: Illegal Invocation` on an XMLHttpRequest wrapped in an ES6 Proxy

I'm writing a proxy for XMLHttpRequests, to force them to return a specific status code. I'm able to run functions on proxy, but setting fails with a TypeError:

How to check type of object in typescript

I have a JSON file containing two different types of Objects in it. I want to iterate over the JSON with respect to their type. To illustrate my problem I creat

Github - unexpected disconnect while reading sideband packet

I've got quite interesting problem. I tried to send some projects via bash to repo and recently there was a problem with sending it. Enumerating objects: 27, do

messaging.onBackgroundMessage is not getting called in web

I have implemented FCM in push i want to redirect to my screen on click of push notification when app is in background. It is redirecting to my webpage but mess

Display an array from a json with vuejs

Hello and thanks for reading my issue ! I've started vVue yesterday so be comprehensive if I made some huge mistakes ^^. Here's an overview of my JSON : { "id

javascript setTimeout()

I have a javascript function as shown below. function checkEven(number){ return(number % 2 == 0 ? true : false) setTimeout(checkEven(number), 2

'Routes' is not defined react/jsx-no-undef

So I was following the React Crash Course on YouTube for Beginners from Academind. I was following everything along and everything was good until I came to the

Sorting array based on property existence

I have an array, i need to sort the array based on one property if that exists. const arr = [{ "item_name": "Cake", "quantity": 1, }, { "ite

React Native Samsung Universal Link stopped to work after upgrading to Android 12

Using a Samsung S10e on Android 12, I was able in the past to open our React Native application (https://github.com/pass-culture/pass-culture-app-native) throug

How connect SciChart to Nuxt

I need how coonect SciChart to Nuxt.js i did npm init nuxt-app "scichart" npm install scichart and i catch error packeg.json { "name": "scichart", "versio

Vue test can't find store in child components

I have a parent component and there are several child components. Some children use Vuex store. When I try to mount parent component like below in Vue test, I'm

Transitioning from one scene to the next with p5.js

I'm currently using p5.js to create an interactive story. My main problem is that I can't seem to figure out how to write the logic for transitioning from the s

$.fn.dataTable.render.moment is not a function with npm

I got a basic issue in my application that i can't solve : i would like to format date in my datatable using moment like i have done in this script : $().ready(

Electron with React- trying to import ipcRenderer - preload.js is not being called

I'm trying to send data fron the page to electron using ipc When I run the elctron app, the window.ipcRenderer is just undifined(inside the electron app) this i

react-native-webview href html tag not wrapping and going off screen

The long href url content inside my WebView does not go to the line and makes the view scrollable horizontally when it should break the text and make it go to t

React-Hook-Form - defaultValues not updated are not registered

I have a form who get updated directly when an user change an input. For that, I use the onBlur method. When I change an input from the defaultValue, it save it