PhilippStein / ng2-ion-range-slider

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

Slider is not working with SSR #32

Open ahsanshafiqe opened 6 years ago

ahsanshafiqe commented 6 years ago

I am getting this error while running slider with ssr.
I have already whitelisted range slider liabrary in webpack.

return factory(jQuery, document, window, navigator); ^

ReferenceError: document is not defined at Object. (D:\work\Web\dist\server.js:31157:36) at plugin_count (D:\work\Web\dist\server.js:31158:12) at Object. (D:\work\Web\dist\server.js:31161:3) at webpack_require (D:\work\Web\dist\server.js:20:30) at Object.ion-rangeslider (D:\work\Web\dist\server.js:23050:18) at webpack_require (D:\work\Web\dist\server.js:194:30) at Object../node_modules/ng2-ion-range-slider/lib/ion-range-slider.component.js (D:\work\Web\dist\server.js:3524:1) at webpack_require__ (D:\work\Web\dist\server.js:194:30) at Object../node_modules/ng2-ion-range-slider/lib/ion-range-slider.component.ngfactory.js (D:\work\Web\dist\server.js:3844:10) at webpack_require__ (D:\work\Web\dist\server.js:194:30)

Is there any solution for this problem? Thanks in advance.

joshua-jd-lee commented 6 years ago

I have the same issue. Is there anyone can help us?

agustintarifa commented 6 years ago

Any solution for this?

AmirAlOmari commented 3 years ago

Seems to be jQuery internals, if I'm not mistaken