Category "javascript"

Tailwind.css — How to implement the last-child using Tailwind?

I have tried without success to implement the prefix last: as shown in the Tailwind.css documentation. Can anyone point out what I am doing wrong? I cannot make

Vue : Uncaught TypeError: _ctx.toPage is not a function

when I clicked the button: it shows Uncaught TypeError: _ctx.toPage is not a function how can I fix this bug? please help me error pic <li v-for="pageLi o

Vue : Uncaught TypeError: _ctx.toPage is not a function

when I clicked the button: it shows Uncaught TypeError: _ctx.toPage is not a function how can I fix this bug? please help me error pic <li v-for="pageLi o

How do I know the level of nesting of my code?

I am writing a custom log function and it would be amazing if it could add some indentation to the log based on the level of nesting of the log. For example thi

Can website js read web extension console.log

I am in the process of developing a web extension (for firefox) and use console.log a lot during the development process. I do not want my extension to be detec

Strapi v4 throwing cors exception

Im new to strapi and I have downloaded strapi v4 and as front-end I use vue.js. Now I created categories and I am trying to fetch those with my vue app but I&rs

how to replace all in a given string except the last 4 digits like **** **** **** 4587 [duplicate]

"\\d(?=\\d{4})","*" I've tried it like that but it does not seem to be working it gives me the exact same string i entered to the scanner

Shorthand for if/else in javascript

I wrote the function to check if a given number is positive, negative, or zero. Is there a shorthanded way? Is it possible to test the condition with map (using

How to pass data to MVC Controller using React.js?

I'm doing a project using React.js as Front End and Asp.net MVC as Back end Process. Now my query is i have to pass user input values to Controller Method. . I

Error overriding peer dependency - npm install reactstrap

"@popperjs/core": "^2.6.0", "@testing-/jest-dom": "^5.11.9", "@testing-/react": "^11.2.3", "@testing-/user-event": "^12.6.2", "bootstrap": "^4.6.0", "react": "^

Spreading an array inside an object gives unexpected result - Javascript

I have two arrays of objects with the same keys and I want to combine them and create a new array of objects. I am able to get almost everything right, but the

Next.js - router.push without scrolling to the top

I am using router from next by importing useRouter from next/router. I am trying to find a solution which will not scroll to the top of the page when I change t

_enzymeAdapterReact.default is not a constructor when test jest

I'm having this issue when test react-native component with jest and enzyme TypeError: _enzymeAdapterReact.default is not a constructor Here is my dev dependen

Javascript directions service not working? DIRECTIONS_ROUTE: NOT_FOUND

In my Laravel blade file, I am trying to get directions to display between 2 markers when I select between 2 drop-down lists. However, whenever I select a dropd

Connecting OHIF viewer to Orthanc Pacs Server

Orthanc is running on port 8042. I have run the following commands to view the images in my Orthanc pacs, through the OHIF viewer which is running on port 3000

React Native and WalletConnect (Uncaught Error: null is not an object (evaluating 'RNRandomBytes.seed'))

I want to use WalletConnect on my ReactNative app. As the WalletConnect docs say, I'm using npx rn-nodeify --install --hack (for introducing support for Web3) i

How to connect Metamask based on the input wallet adress

When I type a wallet address and press the Save button I want to show a Metamask sign in popup to that wallet. for now, It's just randomly connects with the sel

Appending strings to JSON Files

consider the following code snippet: let proposals = JSON.parse(fs.readFileSync(proposalsFile, "utf8")) proposals[network.config.chainId!.toString()].push(propo

Nodejs and SQLite how create multiple tables?

I have question about creating multiple tables in one DB. I try to run for 2 tables, but seems after the first db.run(CREATE TABLE , second db.run(CREATE TABLE

I found 404 Not Found when I installed npm package from local directory even packege exist in nodemodules

I installed a npm package from a local directory. The package installed and is present in the node_modules directory. But when I access the package it’s s