Category "javascript"

Nuxt/ESLint - Parsing error: Must use import to load ES Module

I am using Nuxt 2.15.7 in VS Code, using Node version 14.17.1 and the eslint extension. The problem I started seeing a red squiggly line under the 1st character

can you apply media queries in the <noscript/> tag

Hey so im trying to display a message to the user if javascript is disabled using the noscript html tag. the message simply just asks them to re-enable javascri

Can't resolve 'fs' in \node_modules\electron

I am using the electron-react boilerplate and want to use an electron dialog in App.tsx: const { dialog } = require('@electron/remote') //also tried with import

can you apply media queries in the <noscript/> tag

Hey so im trying to display a message to the user if javascript is disabled using the noscript html tag. the message simply just asks them to re-enable javascri

After refresh, firebase Auth current user returns null

Here is my code on profile page, this works fine first time when i redirect from login method of AuthService const user = firebase.auth().currentUser; if (us

JavaScript sorting of an RGB array

This is the task: Colors have to be ordered in such way: Higher Red value first; if the same then: Higher Green value first; if the same then: Higher Blue val

My required field in my form HTML doesn´t work

I have created a in HTML with required fields and then a Submit button with a ng-click=add(). The code is the following:

My required field in my form HTML doesn´t work

I have created a in HTML with required fields and then a Submit button with a ng-click=add(). The code is the following:

Validating array of different object shapes in yup

I am using formik for form validation and came across some problems in array validation. here is my form structure { flow: [ { text: "hello" }, { input:

How to dataLayer.push using GTM Custom Templates?

I have GTM Custom HTML tag that intercepts dataLayer.push called on the page, checks it for Ecommerce and if it is detected send Ecommerce data to remarketing p

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