Skip to content

在用angular ssr时候,会因为后端渲染拿不到getComputedStyle而报错 #9

Description

@kraminpouds

在使用angular ssr时候, ngAfterViewInit会被后端渲染调用,导致此时去new一个图表,图表内部会掉用window.getComputedStyle,而Node端是不存在的,这样就会在后端控制台报错,虽然并不影响前端展示。
image

Activity

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

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