3

I am having issues with typescript and angular 1.5, on build I get the error error TS2339: Property 'component' does not exist on type 'IModule'. is there a definition file that includes this somewhere that I am missing

0

2 Answers 2

5

The latest d.ts file now has the component method. Update yours with tsd update -o

Sign up to request clarification or add additional context in comments.

2 Comments

Just note that tsd is deprecated : github.com/DefinitelyTyped/tsd/issues/269
This is true but the answer is valid, the type files will still be the same
0

We had a kinda similar issue earlier today and it was to do with using Angular 1.5. Beta 1 which doesn't contain the component function. To fix it we had to upgrade to Angular 1.5 Beta 2 which does contain the component functon.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.