Closed vwochnik closed 7 years ago
I get a similar error message in my editor (VS Code) but it does not seem to affect my webpack build. I'm using TypeScript 2.0 but am still using Typings (not @types
)
there is a quick fix for that
add this to your global.d.ts
/// <reference path="../node_modules/ng-metadata/manual_typings/globals.d.ts" />
The deprecated syntax for registering a directive using
provide
is not working, because there is a type mismatch.This is how it was supposed to work:
And this is the error:
I tried getting more detailed information:
And here is the result:
And here ends my expertise with TypeScript. I an choosing the old syntax for now because I want to get started without setting up an
index.ts
for our existing application.