Category "typescript"

"TypeError: Failed to fetch dynamically imported module" on Vue/Vite vanilla setup

We have a vanilla Vue/Vite setup and I'm receiving TypeError: Failed to fetch dynamically imported module on sentry logs. It seems like the errors are correlate

Typescript: Headless ui - Listbox - open/close management

Headless ui Listbox is not allowing to use open state with typescript. The lisbox should allow multiselect functionality. It should not close when one value is

How to handle the type of the value returned by lodash.omitBy?

omitFalsyFields generic function will remove the key which value is falsy('', undefined, null, etc...) of an object. import _, { Dictionary } from 'lodash'; ex

pass data to child component when clicked on card in parent component ( card has image name id and more info ) angular

I want to pass data when clicked on the card(card has images, id, name, and more) from the parent(nfts) to the child(main) component and render the information

Argument of type '{ title: string; }' is not assignable to parameter of type 'RequiredEntityData<Post>'

I'm learning from Ben's Awad video: Fullstack React GraphQL TypeScript Tutorial. I ran into a problem with typescript. I don't understand why compiler thinks t

Angular animation on ngIf* not applying even though the code looks right

The following angular animation is not applying or working on my toolbar, it should translate it out of view, but it does nothing, it only disappears when minim

How can I send documents with http request to power automate?

How can I send array documents and images with an HTTP request to power automate? I am using type script with nodejs as backend. Please see the code I am using

Angular/Leaflet/OpenStreetMap - clicking on pin for pop-up throws error about an already defined service variable, doesn't display binded pop-up

The error appears in the browser, when I click on any pin. No pop-up is displayed, nothing happens, just the error in the console. Below you will find the comp

How to set intellisense for react testing library using typescript

I just downloaded Create-React-App which uses react testing library. I do not get intellisense when I use it's methods (Example : toBeInTheDocument) . How to se

Metro Builder: SyntaxError: Unexpected token = after upgrading to React Native 0.65.1

Today I updated to React Native Version 0.65.1. After that I was unable to Start the Metro Server I am now receiving following error message while building a Re

Angular Material intellisense doesn't work in VSCode

I'm working on an Angular (v13) project and I installed Angular Material using this command ng add @angular/material I can see the package in the node_modules,

Problem with angular pipes (percent, currency, date)

the Angular question: You are prompted to complete the TransactionDetailsComponent component. You only need modify the template part of the component. The purpo

Antd Resizable table columns in TypeScript

I'm implementing antd <Table> component and need to make columns resizable with react-resizable. I was following the example in the documentation, but sin

"import not found" for custom types in Vue 3 (with Vite/Vitesse)

I've got a Vue 3 project running Vitesse (a Vite starter). I've added a custom ProductData type to my src/types.ts, but when I try to use it in one of my pages

Map Typescript generic array

Suppose I have an object with a static set of keys, and then a type specifying a subset of those keys as a static array: const myBigStaticObject = { key1: ()

Calculate column quantity total in angular

I have an array of objects that contain a quantity field. I'm looking to total one field from the array on a review screen on a table. I have an array of admini

Typescript auto-complete not working in VSCode

I'm trying to make use of Puppeteer within a ts file which works fine except the VSCode Intellisense stops working a soon as I'm inside a .ts and not a .js file

Getting VS Code to detect React props properly when Redux state props are mixed in

There is a nice example in the React-Redux documentation on how to build a functional component that will receive both props from Redux and from its parent comp

error TS6231: Could not resolve the path '' with the extensions: '.ts', '.tsx', '.d.ts'

I'm working on firebase functions with typescript and this error appears in the console while running tsc . -watch: [12:19:41 PM] Starting compilation in watch

Trigger click event dynamically in angular 8

Tried to trigger click event for element reference based on index but not working in angular 8.If anyone know please help to find solution. app.component.html: