Skip to content

"ReferenceError: getComputedStyle is not defined" display on server side rendering. #3870

Closed

Description

Bug, feature request, or proposal:

In server-side rendering, getComputedStyle function not supported.
The cause of this issue is the commit feat(theming): log a warning if core theme isn't loade

What is the expected behavior?

alternative way required for getComputedStyle

What is the current behavior?

not compiled for server-side rendering

What are the steps to reproduce?

https://github.com/leo6104/angular-ssr/tree/master/examples/cli

What is the use-case or motivation for changing an existing behavior?

I did server-side rendering in my angular project using angular-ssr cli example(npm package)

Which versions of Angular, Material, OS, browsers are affected?

Angular 4.0.1, Material (latest master branch), Server side rendering

Is there anything else we should know?

the caused line of this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions