Category "javascript"

Getting this error while making a post request ( API resolved without sending a response for /api/comments, this may result in stalled requests.)

Hi i have started learning Next.js and currently unable to make a POST request on api. I have a comments folder inside the api folder. And inside the comments i

Hot Reloading Page in React 17.0.2 within a container doesn't work

If I run locally run start Everything works perfectly. After executing the command docker run -p 3000:3000 -v /app/node_modules -v ${pwd}:/app b88c46febae5 I ge

.balanceOf is not a function - Interact with existing Contract on Blockchain

I want to automate my staking on The Sandbox. For that I need in the first step to interact with the mSand-Matic Pool Contract. It is this one: https://polygons

convert object in to array of json with given keys [closed]

I have object like { labels: ["city A", "city B"], data: ["Abc", "Bcd"] }; I want to convert above object as below array of json [ { labels

Angular 11: core.js:1141 Uncaught Error: Type DecoratorFactory does not have 'ɵmod' property. at getNgModuleDef (core.js:1141:15)

The project (Angular 11, rxjs, material, @swimlane/ngxdatatabe) can be build and serve with no error message. When loading the landing page from Chrome, it is s

Click with waitForEvents cause Timeout error when using Gauge and Taiko

I'm using Gauge and Taiko (v1.3.2). Gauge version: 1.4.3 Commit Hash: f98dd40 Plugins: html-report (4.1.4) js (2.4.0) screenshot (0.1.0) I have a form that ha

Why tinymce can't read the html file containing mailto in the href part?

I'm using Tinymce5 self-hosted with javafx and Java 8 I'm having a problem reading content with mailto link. If my html page contains a link tag with mailto, Ti

Vue3 | Pinia - Watching storeToRefs in composable function does not work

I'm trying to understand the purpose of composables. I have a simple composable like this and was trying to watch state from a Pinia store where the watch does

webpack - When should I use require vs import for application.js file

I have hard time understanding the difference between "require" and "import" inside application.js file (Rails 6). I've got an excerpt of Michael Hartl's book t

SwiperJS - How do you style the Pagination Bullets?

Using SwiperJS in my ReactJS application. I've imported the default style bundle, but can't figure out how to style the pagination container or the bullets. In

How to load new resources into pixi.js app after resources were already loaded?

I have json file that contains list of files that should be loade, how to achieve this with PIXI? // THIS IS FIRST LOAD OF RESOURCES this.app.loader .add("b

Adding shine animation not working in special cases

I have this function to shine any text element which is passed to it. The first example here works fine (the second example doesn't work, I provide this in case

Installing Firebase tools: Stuck at downloading Chromium

I am trying to run in the terminal of the vs code since I plan to host this online already: npm install -g firebase-tools But it is stuck here: This is my pac

Sum array of objects value based on month - ReactJS

So first of all, because I am using a ChartJS I need to generate an array of months. The creation is looking like this : const [generatedMonths, setGeneratedMon

Solana: Get Candy Machine info from a NFT token using Js

I am trying to find out what is the candy machine id or address for a specific nft. So far I have tried looping through wallet accounts using @solana/web3.js co

jQuery click + if + .find function not working

Going nuts here. Trying to write a function where if there's a '.child' class element inside the container, the function fires, but otherwise does nothing. Howe

Mermaid Subgraphs Laid Out Inconsistently

I'm using Mermaid to create a flowchart with subgraphs. This works okay, except the layout works differently than I expected. With an LR layout, the subgraphs a

add watermark while uploading a file to firebase

I have a input field where a user uploads his/her pdf file which is then uploaded to firebase storage in vanilla javascript(Modular). Now i want to add a waterm

Making v-model:value lazy

I have a simple Vue component, which comes from a 3rd party package. The component is a text editor, and I have to provide it with a value for it to render corr

Allow only one element to be toggled at time

I've created a list of some movie titles. If user has permission he can edit those names by pressing crtl + left click on title that he want to be changed. P ta