ngx-carousel not supporting Server side rendering with angular universal
Closed this issue · 2 comments
ahmedBassell commented
when building for server side i got error:
})(window, document, 'Hammer');
^
ReferenceError: window is not defined
sheikalthaf commented
@ahmedBassell I already release the universal version in @ngu/carousel
Go and install the universal version
kenji-1996 commented
Should be an easy fix for this current package to support it (Much like material does) by using the instance imported in main.ts instead of also importing it yourself