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
d3Force is not a function #481
Comments
@egorairo you need to check whether your ref is defined before using it. It seems like in this case it is not. Specifically when you're using SSR this is quite important as refs tend to be defined only on the client side. |
@egorairo I ran into a similar problem using Next.js and trying to dynamically import this package. Couple things that got it working for me:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi! I'm trying to use d3force method but have error "d3Force is not a function". Could you please explain me why I am getting the error in the code below.
The text was updated successfully, but these errors were encountered: