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.
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.