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

REPL'S not working, #6

Open
zahachtah opened this issue Aug 10, 2021 · 2 comments
Open

REPL'S not working, #6

zahachtah opened this issue Aug 10, 2021 · 2 comments

Comments

@zahachtah
Copy link

I get a

'event' is not exported by https://unpkg.com/d3-selection@3.0.0/src/index.js, imported by ./NetworkGraph.svelte

Any idea how to solve this, would be neat to play with it in a REPL. I will download and run locally in the meantime!

@happybeing
Copy link
Owner

No I'm sorry and unlikely to look into this. You might get a quick answer from the svelte discord, or the d3 slack though - very friendly and helpful communities. Thanks for reporting, and if you find an answer please report back. Good luck.

@boyeborg
Copy link

@zahachtah That's because in d3-selection@3 the global event is removed (v2 is used here). You just need to remove the import (import {event as currentEvent} from 'd3-selection'), and add currentEvent as an input parameter on every function where it's used.

Working REPL: https://svelte.dev/repl/32153df341cf4762971c4bbaf759376b?version=3.46.1

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