Skip to content

antv-g2支持ssr服务端渲染吗? #194

Description

@Alohaliu

如果是 G2、G2-mobile、G6、可视化基础的使用问题,请您按照下面的模板来提 issue,并打上 label,真心感谢~~~

我的需求/我的问题

在服务端渲染的时候,出现如下报错:
ReferenceError: window is not defined
at Object.G2 (/Users/admin/ws/node_modules/@antv/g2-plugin-slider/build/g2-plugin-
slider.js:97:10)

数据以及出现问题的源代码

  // ...

G2 or G2-mobile or G6 的版本以及使用环境

  • G2 or G2-mobile or G6
  • 使用环境: Mac OS X, Chrome 67...

如果是其他的问题,请按照如下模板来提 issue,并打上 label,真心感谢~~~

我的问题

...

我的期望

希望能提供服务端渲染的解决方案,谢谢
...

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions