BinaryMuse / planetary.js

:earth_americas: Awesome interactive globes for the web
http://planetaryjs.com
MIT License
1.6k stars 181 forks source link

TypeError: Cannot read property 'orthographic' of undefined #20

Closed gaba-xyz closed 6 years ago

gaba-xyz commented 7 years ago

Seems that the npm distribution is not working as intended. I tried the basic sample using npm and webpack but I'm getting TypeError: Cannot read property 'orthographic' of undefined.

More specifically it seems that d3.geo is undefined in this context.

peter-bonanni commented 7 years ago

You are using d3v4. To explicitly get d3v3 from package.json I'm using "d3": "^3" in mine which fixed this error.

christiannaths commented 6 years ago

@Gabology This PR should fix that issue: https://github.com/BinaryMuse/planetary.js/pull/23

BinaryMuse commented 6 years ago

This is fixed in v1.1.3.