PhilippStein / ng2-ion-range-slider

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

Unexpected value 'IonRangeSliderModule' imported by the module 'AppModule' #1

Closed huanghai21 closed 7 years ago

huanghai21 commented 7 years ago

Hello, I got an error message like this. Unexpected value 'IonRangeSliderModule' imported by the module 'AppModule'

Hope you can give me some help, thank you~

I used webpack to compile my project.

I install ng2-ion-range-slider: npm install ng2-ion-range-slider --save

and import it in my main module: import { IonRangeSliderModule } from 'ng2-ion-range-slider'; .... imports:[ ...... IonRangeSliderModule ], ....

when I start my project, try to view it in the browser, it can not loading on with an error up there.

erikvanappeldoorn commented 7 years ago

Which browser are you using? I have also issues importing this module in IE11, in Chrome it just works fine. in IE11 it stops at this line:

modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);

huanghai21 commented 7 years ago

I used Chrome, which version is "56.0.2924.87". Did you use webpack2 to compile your project?

erikvanappeldoorn commented 7 years ago

I am using Angular-CLI 1.0.0-rc2 which is using webpack 2.2.1

PhilippStein commented 7 years ago

Hi @huanghai21 could you please provide an example project to reproduce the issues? Is the example working for you?

punkerman commented 7 years ago

I had the same issue in firefox 43.x.x but i upgraded to 47.0.2 and now woks fine , in chrome works fine too

PhilippStein commented 7 years ago

Probably this is related to #3, switching the target version to es5 solved #3. Maybe this issue is now also fixed? @huanghai21 could you please test with the new version v1.0.3?