-
-
Notifications
You must be signed in to change notification settings - Fork 493
Closed
Description
We are upgrading our application from AngularJS 1.5 to Angular 5. With Angular 5, there is TypeScript 2.4. We are building with webpack 3.8.1 and error is:
Error:(6, 16) TS2665:Invalid module name in augmentation. Module 'angular' resolves to an untyped module at /node_modules/angular/index.js', which cannot be augmented.
We have angularjs-slider 6.4.0.
Steps to reproduce
- Use angularjs-slider in TypeScript 2.4 project or with Angular 5.
Expected behaviour
It is possible to fix this by moving angular import into module declaration in rzslider.d.ts:
declare module "angular" {
import * as angular from "angular";
export namespace RzSlider {
...
}
}
Actual behaviour
Actually, angular import is outside module declaration in rzslider.d.ts:
import * as angular from "angular";
declare module "angular" {
export namespace RzSlider {
...
}
}
Metadata
Metadata
Assignees
Labels
No labels