Skip to content

getComputedStyle on SSR Universal #314

@gvestit

Description

@gvestit
  • I'm submitting a ...

    • [ X] bug report
    • feature request
    • support request => Please do not submit support request here, see note at the top of this template.
  • Do you want to request a feature or report a bug?
    Report a bug

  • What is the current behavior?
    When we are rendering on server side the component which is using this library we are getting the error "ReferenceError: getComputedStyle is not defined" on server side.

  • Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)

ReferenceError: getComputedStyle is not defined
3|main | at DragScrollComponent.ngAfterViewInit (server/447.js:1:41636)
3|main | at callHook (server/main.js:1:2487534)
3|main | at callHooks (server/main.js:1:2487151)
3|main | at executeInitAndCheckHooks (server/main.js:1:2486487)
3|main | at refreshView (server/main.js:1:2630872)
3|main | at refreshComponent (server/main.js:1:2648689)
3|main | at refreshChildComponents (server/main.js:1:2626715)
3|main | at refreshView (server/main.js:1:2630553)
3|main | at refreshEmbeddedViews (server/main.js:1:2647970)
3|main | at refreshView (server/main.js:1:2630083)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions