We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Server Error ReferenceError: window is not defined
This error happened while generating the page. Any console logs will be displayed in the terminal window.
window is not defined
"use client"; import { register } from '@antv/x6-react-shape' const NodeComponent = () => { return ( <div className="react-node"> <Progress type="circle" percent={30} width={80} /> </div> ) } register({ shape: 'custom-react-node', width: 100, height: 100, component: NodeComponent, }) graph.addNode({ shape: 'custom-react-node', x: 60, y: 100, })
正常运行
No response
nextjs
The text was updated successfully, but these errors were encountered:
You need to render after the page has loaded, rather than putting render logic in useEffect.
Sorry, something went wrong.
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.
No branches or pull requests
Describe the bug
Server Error
ReferenceError: window is not defined
This error happened while generating the page. Any console logs will be displayed in the terminal window.
Your Example Website or App
window is not defined
Steps to Reproduce the Bug or Issue
Expected behavior
正常运行
Screenshots or Videos
No response
Platform
nextjs
Additional context
No response
The text was updated successfully, but these errors were encountered: