Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support nextjs #419

Closed
kemisstep opened this issue Sep 26, 2023 · 2 comments
Closed

support nextjs #419

kemisstep opened this issue Sep 26, 2023 · 2 comments

Comments

@kemisstep
Copy link

问题描述

ReferenceError: window is not defined

重现链接

ReferenceError: window is not defined

重现步骤

ReferenceError: window is not defined

预期行为

ReferenceError: window is not defined

平台

  • 操作系统: [macOS, Windows, Linux, React Native ...]
  • 网页浏览器: [Google Chrome, Safari, Firefox]
  • XFlow 版本: [1.28.2 ... ]

屏幕截图或视频(可选)

No response

补充说明(可选)

已经使用:
const XFlow = dynamic(() =>
import('@antv/xflow').then(({ XFlow }) => XFlow), { ssr: false }
);

const XFlowCanvas = dynamic(() =>
import('@antv/xflow').then(({ XFlowCanvas }) => XFlowCanvas), { ssr: false }
);

const CanvasMiniMap = dynamic(() =>
import('@antv/xflow').then(({ CanvasMiniMap }) => CanvasMiniMap), { ssr: false }
);

const CanvasScaleToolbar = dynamic(() =>
import('@antv/xflow').then(({ CanvasScaleToolbar }) => CanvasScaleToolbar), { ssr: false }
);

const CanvasSnapline = dynamic(() =>
import('@antv/xflow').then(({ CanvasSnapline }) => CanvasSnapline), { ssr: false }
);

但仍然报错

@xflow-bot
Copy link
Contributor

xflow-bot bot commented Sep 26, 2023

👋 @kemisstep

Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it.

To help make it easier for us to investigate your issue, please follow the contributing guidelines.

We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

@xflow-bot
Copy link
Contributor

xflow-bot bot commented Oct 9, 2024

This thread has been automatically locked because it has not had recent activity.

Please open a new issue for related bugs and link to relevant comments in this thread.

@xflow-bot xflow-bot bot locked as resolved and limited conversation to collaborators Oct 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant