PhilippStein / ng2-ion-range-slider

Ion Range Slider for Angular https://github.com/IonDen/ion.rangeSlider
MIT License
35 stars 39 forks source link

Cannot find namespace 'ArgumentType'. #7

Closed erpomata1974 closed 6 years ago

erpomata1974 commented 7 years ago

I added ion slider to my angular design but to compile (ng serve) I get this error:

ERROR in P:/Users/B66139/workspace/Presentation/PagamentiApp/node_modules/ng2-ion-range-slider/node_modules/@angular/core/src/view/types.d.ts (74,51): Cannot find namespace 'ArgumentType'.) P:/Users/B66139/workspace/Presentation/PagamentiApp/node_modules/ng2-ion-range-slider/node_modules/@angular/core/src/view/types.d.ts (75,51): Cannot find namespace 'ArgumentType'.)

ERROR in P:/Users/B66139/workspace/Presentation/PagamentiApp/node_modules/ng2-ion-range-slider/node_modules/@angular/core/src/errors.d.ts (9,33): Initializers are not allowed in ambient contexts.) P:/Users/B66139/workspace/Presentation/PagamentiApp/node_modules/ng2-ion-range-slider/node_modules/@angular/core/src/errors.d.ts (10,43): Initializers are not allowed in ambient contexts.) P:/Users/B66139/workspace/Presentation/PagamentiApp/node_modules/ng2-ion-range-slider/node_modules/@angular/core/src/errors.d.ts (11,42): Initializers are not allowed in ambient contexts.) P:/Users/B66139/workspace/Presentation/PagamentiApp/node_modules/ng2-ion-range-slider/node_modules/@angular/core/src/errors.d.ts (12,43): Initializers are not allowed in ambient contexts.) P:/Users/B66139/workspace/Presentation/PagamentiApp/node_modules/ng2-ion-range-slider/node_modules/@angular/core/src/errors.d.ts (13,35): Initializers are not allowed in ambient contexts.)

ERROR in P:/Users/B66139/workspace/Presentation/PagamentiApp/node_modules/ng2-ion-range-slider/node_modules/@angular/core/src/animation/dsl.d.ts (81,33): Initializers are not allowed in ambient contexts.)

ERROR in P:/Users/B66139/workspace/Presentation/PagamentiApp/node_modules/ng2-ion-range-slider/node_modules/@angular/core/src/animation/animation_metadata_wrapped.d.ts (12,33): Initializers are not allowed in ambient contexts.)

PhilippStein commented 7 years ago

@erpomata1974 could you please provide a plunker to reproduce the problem? Which Angular version are you using? Might this be related to https://github.com/angular/angular/issues/14402 ? Please try to update your TypeScript version.