Category "javascript"

RollupJS generate only index.js

I'm having some trouble with RollupJS. I have one component library using typescript, react, AntDesign which using rollup. Here my rollup config: import babe

Puppeteer, awaiting a selector, and returning data from within

I am loading a page, intercepting its requests, and when a certain element shows up I stop loading and extract the data I need... Here is the problem that I am

Puppeteer, awaiting a selector, and returning data from within

I am loading a page, intercepting its requests, and when a certain element shows up I stop loading and extract the data I need... Here is the problem that I am

How to embede Apache Superset chart into React app

I want to embed my chart from Apache Superset into my React.js App. So far I know there is possibility to use like this: <iframe id="myIFRAME"

Check All checkbox not working across the table pagination razer mvc

I have implemented a checkall checkbox for the table but the table has pagination and DOM only gets the elements currently showing on the page. my implementatio

Is there a way to combine ES6 imports and commonJS require in TS compiled files?

I have changed the code of a project made in NodeJS to Typescript. Everything is working fine, except for the fact that apparently a third-part package (file-ty

AJAX: Can I POST an array/data from my GET request? (Flask)

question similar to AJAX/FLASK/JS: How to POST existing array into endpoint?, a new question I've posted but this doesn't specifically help with the new issue,

Is it possible to run Mongoose inside next.js api?

I'm building a website for my sister so that she can sell her art. I am using Next.js to set everything up. The website renders the artwork by grabbing an array

Javascript: get a BadRequest error from a Web Api .Net 6 using fetch

I have a little trouble using fetch, This is javascript code: function loginJS() { const login = document.getElementById('login'); const nome = documen

How do I turn print into <p>

This is my script: <script> import random import string def get_random_string(length): # choose from all lowercase letter letters = string.prin

how to make state field as not required in lightning record edit form?

Im using address field from "contactpointaddress" standard object. When i'm using address field from lightning record edit form with attribute as required, i do

Why @HostBinding is triggered continuously even though the variable didn't changed? (Angular)

I joined a new Angular project and on the app.component.ts are some @HostBindings that are called non-stop even though there is no direct event that is triggere

React FileBase64 Styling

How can I style Filebase input button? It looks very ugly and I don't know how customize it... This is what I have: <FileBase type="file" multiple

How to access a function defined as key of an object from within another function defined as key of same object in JS

Given below code, I need to reuse functionality from innerFunc1 and innerFunc2 in innerfunc3, but I am not sure, how innerFunc1 and innerFunc2 can be accessed i

Using SocketIO with Unity Quest 2 vr as client and Node.JS as server

Me and my team are building a VR game for the Quest 2 with Unity written in C#. We have a program that is the server that is written in JavaScript (Node.JS), th

Upload single image from axios to FastAPI: "Expected UploadFile, received: <class 'str'>"

I try to upload an image from my react-admin app to FastAPI using axios. The ImageInput component returns a File object which I cast to a Blob and try to upload

using Damerau-Levenshtein distance to compare sets of text in code.org

Not very knowledgeable with coding, I usually use block coding and not typing. I've used many different Levenshtein distance codes I've found online and most of

Dynamically added svg iamge not visible in Angular

I tried to add svg image on my application but it's not visible. The image link is coming from the backend. I tried multiple ways but nothing is working. 1st wa

Next.js ISR pass additional data to getStaticProps from getStaticPaths

In SingleBlogPost.jsx i have: export async function getStaticPaths() { const res = await fetch("http://localhost:1337/api/posts"); let { data } = await res.

Getting expected a function error in Lodash's flow

I need to use lodash's flow function in my project and started learning from an example below it looks ok but getting Expected a function error. Source Code: