Category "typescript"

src/index.ts:1:1 - error TS6133: 'functions' is declared but its value is never read

While trying to follow the Add Firebase to your JavaScript project on an empty git repository that will be used for a TypeScript project, I got the following er

Playwright before each for all spec files

I very new to Playwright. Due to my test suites, I need to login into my application before running each test. Inside a single spec file that is easy, I can sim

How to run an Inferno project?

Hi I am trying to run this github project https://github.com/LemmyNet/lemmy-ui How do I run it? I tried using npm start it says yarn not found.

Must use import to load ES Module while updating angular

I ran into this problem while trying to upgrading from angular 6 to 8, whenever i try to ng serve or ng build i get the following error: its been so fustrating,

React-Redux useSelector typescript type for state

I'm using the useSelector(state => state.SLICE_NAME) hook from React-Redux however I'm having difficulty defining the state parameter. It is set by default a

Visual Studio 2022 - for typescript files Intellisense not working

I have a problem with the Intellisense on Typescript files in Visual Studio 2022 (on 2019 I didn't have this issue). From time to time the Intellisense stops wo

tsc throws `TS2307: Cannot find module` for a local file

I've got a simple example project using TypeScript: https://github.com/unindented/ts-webpack-example Running tsc -p . (with tsc version 1.8.10) throws the foll

error TS6059: File is not under 'rootDir' .. 'rootDir' is expected to contain all source files

I am getting this fairly non-sensical tsc transpilation error: error TS6059: File '/Users/alex/codes/interos/teros-cli/src/logging.ts' is not under 'roo

checkbox for select all checkboxes in angular primeng table

When I click on the checkbox in the table header. Then all the checkboxes in the table should be checked. Currently, I'm using angular 12 and primeNG table. <

TypeScript get Svelte component's prop type

Let's say you are using a component that has been imported from elsewhere <Animal species={animalSpecies} /> // species has a specific type and you want t

Typescript complains Property does not exist on type 'JSX.IntrinsicElements' when using React.createClass?

I am using typescript to write redux application. var item = React.createClass({ render: function() { return (<div>hello world</div>) } });

How do I Determine The Number Of Days In A Month from a particular date in angularjs 2?

I am using angularjs 2 and type script. I want the number of days in a month from a particular date given by user. How do I Determine that? Please help. Thanks

How to define default route with parameters in Angular Component Router?

I want to have a default route in my sub-component (set with useAsDefault: true) and to have parameters automatically passed to it. I cannot find anywhere in do

Will TypeORM @AfterRemove or @BeforeRemove entity listeners still run when the db is dropped?

Some entities in my database have a property which is their associated key on AWS S3, for example: // my.entity.ts @Column() s3Key: string; I would like one of

ERROR in ./src/polyfills.ts Module not found: Error: Can't resolve 'zone.js/dist/zone'

I have an angular 8, that uses karma/jasmine to run some unit tests. I can run tests by executing the following command ng test but I'm getting the following er

Vuex modules with typescript

EDIT: Since vue conference Toronto (late 2021), Vue has officially switched over to Pinia for typescript support, instead of Vuex. They also acknowledge that Vu

jest with vue3 typescript TypeError: Cannot read property 'deep' of undefined

I am doing unit test using jest. The things I am working with is vue3 (typescript) with quasar. I am facing the following error: TypeError: Cannot read property

How to set the type for the state object in pinia?

I'm making a chess game and I am using Vue 3 and TypeScript with Pinia for the state management. I want to do something like the following: export const useStor

Test invalid function arguments with TypeScript and JestJS

I've beend creating a node application with typescript and I'm using jest to write unit tests. My issue: I can't really write unit tests simulating invalid fun

How to get TypeScript to recognize firebase import

I am trying to show content from firestore in a small TypeScript web application by accessing firestore client-side. However, tsc is failing to compile as it ca