1
votes

I'm playing with this boilerplate and noticed that tsd was deprecated in favor of typings, so I upgraded to it.

Here's my current set of packages

With typings I upgraded the type definition for Angular and now cannot compile the typescript files anymore, because of TS2339.

For example

[14:15:05] Bundle error: src/features/beef/beef.controller.ts(18,9): Error TS2339: Property 'module' does not exist on type 'IAngularStatic'.

Also seeing this error reported by Visual Studio Code, and downloaded the definition file from HEAD of the Github repo, it's the same that typings installed.

So, my question is, this is a definition bug? Is there something to solve it?

2

2 Answers

0
votes

Seems a bug in [email protected]. My same codes compiled with no error under [email protected] but TS2339 under [email protected].

0
votes

Instead of migrating from tds to typings, I created a new application with typings and manually installed the dependencies. It worked!

Still not sure why the migration didn't work, but there's an alternative.