Category "typescript"

React Native Navigation Argument of type 'string' is not assignable to parameter of type

I have this problem with react native, react navigation, even with this error the navigation flow is still working. Argument of type 'string' is not assignable

Class validator: Use class member as decorator argument

I have a signup DTO where one member is dependent of another. The IsPostalCode on zip needs to know the countryCode/locale, which is one of the other class memb

Jest won't accept top-level-awaits with NodeJS16 & TypeScript

I'm trying to update my NodeJS12 & TypeScript app to Node16, one if the reasons is the need to use top-level-awaits. The code compiles correctly after the u

@capacitor-community/http post request with empty response

I am developing ionic application and using @capacitor-community/http plugin for API call. When I call POST request which returns some response, it's working pe

Wait until a certain value is true in RXJS

I am using angular and rxjs with an external service : I have the following method (simplified) getElevation(pos: Cesium.Cartographic): Observable<number&g

React useTable hook with typescript

So I have a JavaScript class with useTable. In Java script its been used like below import {useTable, useFilters,useAsyncDebounce,useSortBy,usePagination,} from

Firebase: Use converter in transaction with Firestore

I am trying to use a Firestore data converter inside a transaction where I am adding a record to a collection (entries) and updating a counter in another collec

What "flow" language is this?

https://transform.tools/typescript-to-flow I don't think it's https://flow.org/en/ though it converts from typescript or am I mistaken ? I searched on Google an

Skip --set-upstream doing git push

I'm really annoyed I have to do `git push --set-upstream origin <my_branch>` every time for new git branch. Is there any way I can skip it? I found this

Passing Angular component to another one

I know this has been asked before but I don't understand those answer to be honest. I want to make something simple: Basically I have this: <div class="carou

Conditional compilation using ifdef-loader with Angular 13 and Webpack?

I have an Ionic application that relies heavily on conditional compilation where I include or exclude blocks of code based on a set of config values similar to

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

Type 'React.ReactNode' is not assignable to type 'import(".../@types/react-transition-group/node_modules/@types/react/index").ReactNode'

I've worked with React project, integrated with Circle CI and after some minor changes, it started to fail all builds with Its instance type 'ReactApexChart' is

ERROR Error: NG0201: No provider for NgControl found in NodeInjector

i ran completly out of ideas. I want to user Reactive Forms Module, so i imported it in app.module.ts like import { ReactiveFormsModule } from '@angular/forms';

bazel rules_nodejs can't resolve modules using custom package.json location

Bazel rules_nodejs can't resolve modules using custom package.json location. Can someone help explain how to fix it? Ideally I'd like to use a single tsconfig.j

Standard way to add custom react-scripts in create-react-app

I have a project created from create-react-app and is in typescript, I want to add suport for custom react-scripts without eject so what would be the best way t

Getting error: The expression is not callable Mongoose NextJS

I trying to save data to a mongoose model on NextJS page. I get a typescript error on this line: await User.create(data) This expression is not callable. Each

Why are the args for my storybook component showing as optional instead of required?

I have a simple loader component import React from "react"; import { Backdrop, CircularProgress } from "@material-ui/core"; import { makeStyles } from "@mat

Property '$vuetify' does not exist on type - when using Nuxt.js with Vuetify

I have this error for a particular part in the code when accessing this.$vuetify in my Nuxt.js app. ERROR ERROR in components/equipment/QuickInfoCard.vue:21: