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

d3 is not defined #39

Open
LB26121 opened this issue May 16, 2023 · 0 comments
Open

d3 is not defined #39

LB26121 opened this issue May 16, 2023 · 0 comments

Comments

@LB26121
Copy link

LB26121 commented May 16, 2023

While trying to use your package with react, the following error message appears permanently:

Uncaught ReferenceError: d3 is not defined

It doesn't matter how I import d3 or your package, the error always appears.
Which file do I need to import exactly? tidytree/dist/tidytree.min or tidytree/src/main.js ?
So far I import d3 in the same file -> import * as d3 from 'd3';

Packet versions:

  • "react": "^16.14.0"
  • "d3": "^7.8.4"
  • "tidytree": "^0.5.9"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant