Category "typescript"

Ionic invalid package name __ngcc_entry_points__.json

I'm almost finished developing my application with ionic and angular. Unfortunately, I'm totally stuck. I can't build my application (on android) anymore. Here'

This module is declared with using 'export =', and can only be used with a default import when using the 'esModuleInterop' flag

I'm trying to make a simple API using typescript and NodeJS but when I run my code I get this error "This module is declared with using 'export =', and can

Can't run my Node.js Typescript project TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for /app/src/App.ts

When I try to start my app on Heroku I got the following stack trace. It is just a basic ts.app like you see with ts-node and nodemon. I am really interested in

Cloudlinux NodeJS demands to store node modules for application in separate folder (virtual environment) pointed by symlink called "node_modules"

I was looking to deploy my Nodejs/TypeScript web application to my cpanel shared hosting. But, I am getting an error: * Cloudlinux NodeJS Selector demands to s

ng-bootstrap Datepicker defaulting the navigation year to 10 years before the current date

I believe the default behaviour is to default the Year navigation to the current year with 10 years prior as the minimun date and 10 years forward as the maximu

Property 'current' does not exist on type '[boolean, Dispatch<SetStateAction<boolean>>]'.ts(2339)

I am adding cursor animations to a React/Typescript project and in researching came across a CodePen (Animated Cursor React Component) that works perfectly well

How to detect dead or unused code in Angular?

I and my team are working on an angular application from more than a year now. As part of our code refactoring process we want to delete unused or dead code fro

How to clear pre-defined blockly custom blocks in Angular

I have some problem initializing custom blocks I created blockly custom blocks to modal export const ConditionBlocklyBlock: Block[] = [ { type: 'SUM_MAT

TypeScript: Interface cannot simultaneously extends two types

I'm writing a React app using TypeScript. I use material-ui for my components. I'm writing a custom wrapper for material-ui's Button component. It looks like th

Cannot find a differ supporting object '[object Object]'. NgFor only supports binding to Iterables such as Arrays

here is code i am trying to access object of objects. template <table class="table table-striped"> <tr *ngFor="let response of response"> &

NextJS + Typescript built failed with @auth0/nextjs-auth0

I'm using Typescript for NextJS and I cannot build the application because it has some issues with the auth0/nextjs-auth0 This is the issue. If I install this,

Generic function to convert string to typescript enum

I found this great answer about how to convert a string to a typescript enum. Based on that I have written this function enum Color { Red='red', Green='green'

TypeScript optional properties not accepting undefined value

<MyCustomField type={props.type} MyCustomField's type type definition: type?: string; props.type's type definition: type?: string; For some reason, I

Call function stored as class property

I have a class Process that takes in a type of object () => void in its constructor. Whenever I pass this into the object, all appears fine and well, however

Use Quasar App code in background script of BEX

I am developing a browser extension using Quasar framework's BEX mode. In the app part (popup window), I have a TypeScript file which contains some common funct

Rename key of typescript object type

I have this: type Two = { one: number, two: string, three: boolean } I want it to create a type that would look like this: type RenamedTwo = { one:

how to use multiple tsconfig files (with conflicting compiler options)?

My codebase contains two typescript projects: for a react web app for web workers The web worker codebase is part of my public/ folder. Which means that there

Cannot read property 'setProperty' of undefined fxFlex issue with ng-container Angular 9 Flex Layout

<div [fxLayout]="fields.layoutConfig.layoutDirection + ' wrap'" fxLayout.xs="column" [fxLayoutGap]="fields.layoutConfig.fxLayoutGap"> <ng-cont

How to use document.getElementById() method in TypeScript?

I am trying to reset HTML Form in order to clear all the values in the input fields using; document.getElementById('myForm').reset(); But I can use that in

How can I use moment.js to add days, excluding weekends?

I'm setting a default follow-up date two days from current date, which currently works: const Notify = moment().add(2, 'days').toDate(); However, I would lik