You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i am using angular universal app which will be rendered on the server side with nodejs.
Since in the nodejs environment there is objects like window... document and more, the platform will not recognize the addEventListener as function.
-->
ERROR { TypeError: this.el.addEventListener is not a function at ImgFallbackDirective.addEvents (/Users/../node_modules/ngx-img-fallback/dist/src/ngx-img-fallback.directive.js:36:17) __zone_symbol__currentTask: ZoneTask { _zone: Zone { _properties: [Object], _parent: [Object], _name: 'angular', _zoneDelegate: [Object] }, runCount: 0, _zoneDelegates: null, _state: 'notScheduled', type: 'microTask', source: 'Promise.then', data: undefined, scheduleFn: undefined, cancelFn: null, callback: [Function], invoke: [Function] } }
solution: maybe a fallback strategy for server side rendering will be great !!!
Thank you
The text was updated successfully, but these errors were encountered:
i am using angular universal app which will be rendered on the server side with nodejs.
Since in the nodejs environment there is objects like window... document and more, the platform will not recognize the
addEventListener
as function.-->
ERROR { TypeError: this.el.addEventListener is not a function at ImgFallbackDirective.addEvents (/Users/../node_modules/ngx-img-fallback/dist/src/ngx-img-fallback.directive.js:36:17) __zone_symbol__currentTask: ZoneTask { _zone: Zone { _properties: [Object], _parent: [Object], _name: 'angular', _zoneDelegate: [Object] }, runCount: 0, _zoneDelegates: null, _state: 'notScheduled', type: 'microTask', source: 'Promise.then', data: undefined, scheduleFn: undefined, cancelFn: null, callback: [Function], invoke: [Function] } }
solution: maybe a fallback strategy for server side rendering will be great !!!
Thank you
The text was updated successfully, but these errors were encountered: