Category "javascript"

How to get a certain post, its tags and comments from Wordpress REST API using switchMap and then combine the resulting values using JS?

I am working on an Angular app that needs to fetch a certain post with a given ID, its respective tag names and comments from Wordpress REST API. This applicati

How to handle "Unchecked runtime.lastError: The message port closed before a response was received"?

Forgive me for any glaring mistakes as I am new to chrome extensions, but this error with Chrome's message passing API has been discussed here, here, and here i

Image from a link not showing in html2pdf

I'm trying to generate a pdf in javascript using html2pdf that I installed using npm. The problem is that it will not show my images that comes from an url in m

How to handle "Unchecked runtime.lastError: The message port closed before a response was received"?

Forgive me for any glaring mistakes as I am new to chrome extensions, but this error with Chrome's message passing API has been discussed here, here, and here i

What is the difference between "createReadStream" and "Readable" class?

Can someone explaint Difference between createReadStream and readable in node.js? By my observes they are similar, so what is under the hood difference, and whe

Image from a link not showing in html2pdf

I'm trying to generate a pdf in javascript using html2pdf that I installed using npm. The problem is that it will not show my images that comes from an url in m

How i can do bubble sort to array with object?

There is a task to make array sorting through Bubble sort. I just can’t understand how exactly it is necessary to implement sorting of such an array, in w

Why is the google maps places search not placing a marker when a location is found in my Angular project?

I am using the @angular/google-maps package in my Angular project to display a map with a search box for searching locations. When I search for a location, it i

FullCalendar 5 - How to show a coloured dot to the left of events in initialView: 'timeGridWeek' instead of solid fill

When I set the FullCalendar to: initialView: 'dayGridWeek', The Events are shown with coloured dots instead of solid fill (this is what I want). However, when

setting "type" to "module" in package.json then not able to read es modules

CONTEXT: I'm trying to start with SSR using react, and I've ran into this problem before the updates, and I'm pretty sure I'm missing something obvious but I'm

Can firefox's multi-account containers extension be replicated in chrome or chromium based browsers?

I love the firefox extension multi-account containers. I want to switch to brave browser but I can't find a good alternative. Is it a functionality that can onl

Time difference between two time showing wrong values in js

I want to check time difference between two times and get difference in minutes, using javascript and my time format is 12 hrs with am/pm for example : compar

Vue3: Uncaught TypeError: 'set' on proxy: trap returned falsish for property 'NewTodo'

I got an error message: Uncaught TypeError: 'set' on proxy: trap returned falsish for property 'NewTodo' That error appear when im trying to reset the input tex

websocket client close failed when switch network/ offline

i'd like to ask some question about how to close a websocket client when offline/switched network. when i try to close the socket for the 2 case in chrome, afte

How to seed/upload images in KeystoneJS 6?

Using the example here, if I then add an image field to Post: // schema.ts import { list } from '@keystone-6/core'; import { select, relationship, text, timesta

How to use moment in nestjs application

I want to use momentjs in a nestjs app, and also be able to test my services. So I provided momentjs as below in my module providers: [ { provide: '

TypeError: Cannot read properties of undefined (reading 'getContractFactory') when testing contract

First question so bare with me if it is not very clear, but I'll try my best. I am currently running through a youtube video to test my contract with hardhat, e

FastAPI not loading static files

So, I'm swapping my project from node.js to python FastAPI. Everything has been working fine with node, but here it says that my static files are not present, s

javascript decoding webpackJsonp to readable code

there is a way to change this code into a clear and readable code ? (window.webpackJsonp=window.webpackJsonp||[]).push([[7],{"2wwy":function(n,t,e){n.exports=e

Fullcalendar - Content are badly positioned When a calendar is on a tab

Reduced Test Case Just click on the second tab to display calendar in snippet. document.addEventListener('DOMContentLoaded', function() { var initialLocal