Category "javascript"

Jest messageParent can only be used inside a worker

Is there a way to get a proper error message? when i do $npm test and I intentionally break my code(cough cough remove a line of code) I get this message src/re

How can I get a "single HTML file" report in Cucumber?

I've a use case where i need a single HTML file report that I need to e-mail further. I get these files as a cucumber report: Is there any way to generate a si

How to reach the data from Redux devtool?

I want to reach the data of 'audience' under an endpoint where it shows in Redux dev tool of Google Chrome. Is it possible to reach it like we reach the localSt

Chrome Extension to Block Stored Links

I am trying to achieve the following: cancel the event (prevent the page from loading) if the link matches one of the links stored in Google storage and open th

Why does my last customer entry override the previous entry instead of adding it to the customer object? JS

Why does my last customer entry override the previous entry instead of adding it to the customer object? JS Any help would be much appreciated. class Bank {

Asserting value from certain row on table

I am trying to assert a value from a certain row on a table. The row I am trying to assert the value of will always have the same description, but where the row

How do I properly set up Passport Google OAuth 2.0 with ExpressJS?

I am trying to set up some user authentication and want to use Google's OAuth2.0 to do so. So far, I have set up a Google API Project at console.cloud.google.co

React Native line-through not centered

The strike through is not vertically centered. My code is like this: <Text style={{textDecorationLine: 'line-through', alignSelf: 'center', fontFamily: const

Stop the multiple display of an element in VueJS - Fancybox

I am looking for how to correctly integrate fancybox on a Vuejs carousel image gallery. But somehow i don't know, I get a display of multiple image items (actua

Some Prisma Model @@map not generating

I have a few models in my schema.prisma file that are not generating with their @@map for use in the client. model ContentFilter { id Int

JS: How to calculate face value after dice roll animation

I've created a neat little dice roll animation. It is essentially 6 div elements inside a wrapper container that has been styled into a cube via CSS. I've got i

displaying data on heatmap

Currently I am trying to find a way to display timeseries data through a heatmap via highcharts, and I was wondering if there is a way to plot the data on this

How to pass dynamic query name to GraphQL?

Is it possible pass query name to GraphQL using props in React? const allEntries = gql` query allProducts{ '${queryName}' { id name

JavaScript externe class or array visible into onmessage worker

With p5.js in a first time I cannot draw gradually the Koch snowflake: when a click to perform I see the result of the drawing when the recursion is gone. so I

same file name in typescript files and javascript files

Let's say in the src folder, we have two files, one is typescript file someFeatures.ts, the other is js file someFeatures.js,so their main file name is the sam

Using makeStyles in material ui with typescript

I'm trying to convert JavaScript template to Typescript. So I have this accordionStyle.ts like below import { primaryColor, grayColor } from "../../material

Using ‎Mermaid in angular project

I'm beginner at ‎Mermaid and I'm trying to use ‎Mermaid in my angular project. I add it in my html and it works. <script src="https://cdnjs.cloud

MaterialUI makeStyles undoes custom css upon refresh in NextJS

I am working on a NextJS site that has some custom styling that is being applied via MaterialUI's makeStyles. It works fine on the first load and then undoes al

Update a dynamic created JS html table after a row is deleted

I have an HTML table dynamically created via JavaScript. After filling in some fields, clicking the "Add" button adds a new row to the table. After inserting a

button not triggering call back function when clicked on. No way to know why as no error's thrown by console

I'm using an event listener on the button element. The user's first asked to select a language. Once they've have done so they are presented with the button in