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

Reference error _ is not defined. #144

Open
mohankoppuravuri opened this issue Apr 2, 2023 · 2 comments
Open

Reference error _ is not defined. #144

mohankoppuravuri opened this issue Apr 2, 2023 · 2 comments

Comments

@mohankoppuravuri
Copy link

Hello guys. I installed loadash and d3 libraries. Below is the dependenies copied from my package.json file.

 "dependencies": {
    "d3-dtree": "^2.4.1",
    "d3": "^4.5.0",
    "lodash": "^4.0.0"
  }

image

Can you tell me what went wrong with my installation ?

@JorbFreire
Copy link

same issue here, did you make it work @mohankoppuravuri ?

@shahzodjonweb
Copy link

shahzodjonweb commented Jul 9, 2023

same issue here, did you make it work @mohankoppuravuri ?

Hi , I have downloaded d3-tree package instead of using npm. I have loaded d3 and loadash as npm package. In my downloaded dTree.js file , I have added :
import _ from "lodash"; import * as d3 from "d3";
Then everything worked. Note that d3 should be older version , if no it gives error, mine is "d3": "^5.16.0".

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

3 participants