When trying to link to external modules, Intellisense spits an error along the lines.
Could not find symbol 'ng' in global module
or..
Could not find symbol 'ng' in module 'App' // my main module
.. although I correctly refer to typescript definitions (using definitely Typed):
_references.ts
/// <reference path="../../typings/tsd.d.ts" />
declare var angular: ng.IAngularStatic; // unable to find in global module
SomeDirective.ts
/// <reference path="_references.ts" />
module App {
export class SomeDirective implements ng.IDirective // unable to find in module 'App'
}
Interestingly, compiling * .ts files with grunt-typescript works fine and the application starts without problems.
user4614918
source
share