Category "typescript"

Error on building app using Ngx-extended-pdf-viewer

Just started angular and I am trying to use a PDF Viewer integrated into my application. I saw ngx-extended-pdf-viewer while browsing which library to use and t

Visual Studio typescript errors but webpack builds fine and no red squiggles in editor

I'm getting many of the following errors when in the Visual Studio (not VS Code) Error list: Cannot find module '../../dataStructures'. Did you mean to set the

how to create register mutation Graphql typescript

import { Arg, Field, ID, InputType, Mutation, ObjectType, Query, Resolver } from "type-graphql"; import { PrismaClient } from '@prisma/client' const prisma = ne

Create union literal type from key values

The TableData type has the same properties as the return type of the following function const createTableData = (cod: string, promo: string, type: string) =>

webpack dev server only reloads once

Ok so now i have read a lot of different issues on stackoverflow without any luck, they seem all to go to an older version of webpack-dev-server. I have tried a

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';