sheikalthaf/ngx-carousel

ngx-carousel not supporting Server side rendering with angular universal

Closed this issue · 2 comments

when building for server side i got error:

})(window, document, 'Hammer');
   ^
ReferenceError: window is not defined

@ahmedBassell I already release the universal version in @ngu/carousel
Go and install the universal version

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