generator-gulp-angular icon indicating copy to clipboard operation
generator-gulp-angular copied to clipboard

Cannot find namespace 'angular'.

Open Mr-LiuDC opened this issue 8 years ago • 0 comments

After npm install & bower install,When I run command gulp test or gulp serve, I got this error. How can I solve this problem ?

ERROR in D:\Git\practice\yo-generator\gulp-angular-app\src\app\components\malarkey\malarkey.directive.spec.ts (16,138): error TS2503: Cannot find namespace 'angular'.

ERROR in D:\Git\practice\yo-generator\gulp-angular-app\src\app\components\malarkey\malarkey.directive.spec.ts (17,5): error TS2304: Cannot find name 'spyOn'.

ERROR in D:\Git\practice\yo-generator\gulp-angular-app\src\app\components\malarkey\malarkey.directive.spec.ts (21,15): error TS2304: Cannot find name 'angular'.

ERROR in D:\Git\practice\yo-generator\gulp-angular-app\src\app\components\malarkey\malarkey.directive.spec.ts (30,3): error TS2304: Cannot find name 'it'.

ERROR in D:\Git\practice\yo-generator\gulp-angular-app\src\app\components\malarkey\malarkey.directive.spec.ts (31,5): error TS2304: Cannot find name 'expect'.

ERROR in D:\Git\practice\yo-generator\gulp-angular-app\src\app\components\malarkey\malarkey.directive.spec.ts (34,3): error TS2304: Cannot find name 'it'.

ERROR in D:\Git\practice\yo-generator\gulp-angular-app\src\app\components\malarkey\malarkey.directive.spec.ts (35,5): error TS2304: Cannot find name 'expect'.

ERROR in D:\Git\practice\yo-generator\gulp-angular-app\src\app\components\malarkey\malarkey.directive.spec.ts (35,40): error TS2304: Cannot find name 'jasmine'.

Mr-LiuDC avatar May 25 '17 13:05 Mr-LiuDC