Category "javascript"

React Components Rendering Error in Electron-React-Boilerplate

Good Afternoon all, I built a React.js web music-player application a while ago, and now I am transforming my old react application into a downloadable des

this script, it's a code that I'm updating from V12 of discord.js to v13

I want to understand the reason for the error, so if it happens again, you can correct it, the following error appears whenever I use the !whitelist command (my

Using 3rd party lib file in NodeJs and getting LNK2001 error

I have been searching for an answer for a while and couldn't find anything that worked. Here is some background: I am trying to build an electron app that can u

Retrieve two foreign keys nodejs sequelize

I have a route and I want it to send two primary keys as foreign keys to my orderline table. I have three tables a customer, address and orderline table. an ord

TypeError: Cannot read property 'title' of undefined NextJS

I've been trying to build this blog app, Before is fine and in the dev environment is also fine. But, as soon as i try to build it for production it caught in t

How to access props passed inside a setup function for Vuejs (Composition API)

When I use props to pass an object into the child component, I am unable to use the props inside the setup function (Composition API). I am trying to use the pr

Javascript debounce for mousemove event not working

I checked SO and found this answer link and wrote my solution link , but in reality it doesn't work. Task: Writing multiple blocks and adding a mouseover event

Hardhat compile error "Expected a value of type HttpNetworkConfig"

I'm attempting to follow the NFT tutorial here. I have set up the accounts on Alchemy and Metamask created the .sol file. I have a .env file in root that look

Ionic 6 - localization of Google Maps API

I am using Angular 13 and Ionic 6 to add Google Maps API V3. Here is a simple example provided by Google to add the map using TypeScript. When using Ionic, I am

Mongoose and Next.js: Unhandled Runtime Error TypeError: Cannot read properties of undefined (reading 'Token')

I basically defined this Model, much like another which doesn't error out; So I am stumped as to why it's not working... Here is a Minimal, Reproducible Example

Get selected value in dropdown list using JavaScript

How do I get the selected value from a dropdown list using JavaScript? I tried the methods below, but they all return the selected index instead of the value:

Adding array of value in javascript

I'm asking this question again and hope I get the answer this time, I have an array of number that adds and subtract on button click which works withonclick and

How Can i execute something in one window and it happens on another (chrome)

I want to make a GUI which opens in a pop-out window. It needs to be able to access the console from the original window.(aka needs to run commands from pop-out

Unable to map nested array data in JavaScript?

Here, I have nested array object categories which have nested array objectproduct. product contains name, price, discount, unitsold properties with images array

Can't insert an array of data into Formik state. One element is set only

I try to add an array of files into "files" property in Formik state, Formik state: initialValues={{ firstName: '', last

Error: Absolute route path "/" nested under path "/app" is not valid

I suddenly get this error and not sure why. I did not change the "react-router-dom": "^6.0.0-beta.4" version. But the "react-dom": "^16.8.4"" vad changed to "re

Setting state in React useEffect hook

In my app I fetch data from my API after a button is clicked that changes the state of endpoint. Until the data is fetched I want to display a loading icon. Aft

Making changes to an installed node package?

I have an external node package installed in my project. It does 90% of what I want but I'd like to make some changes to it. I don't want to submit a PR to de

What wrong with Vue scroll modal?

Im trying since yesterday find a way to screen a modal on Vuejs, when i scrolling down a page, the problem is i got nothing on my screen when i compile the code

Javascript Transformation Missing Objects

Hi I am transforming objects I have write the following program to add newName in the array If you take a look resultedEvents, categoryName and name is missing