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

TypeError: svg.selectAll(...).data(...).join(...).on(...).attr(...).transition is not a function and TypeError: Cannot read property 'name' of undefined #4

Open
smanihwr opened this issue Jun 11, 2021 · 1 comment

Comments

@smanihwr
Copy link

smanihwr commented Jun 11, 2021

Getting this error while running branch locally (12-geo branch)
TypeError: svg.selectAll(...).data(...).join(...).on(...).attr(...).transition is not a function

once I comment transition() method, map renders fine. But when I click any country getting below error

TypeError: Cannot read property 'name' of undefined

@smanihwr smanihwr changed the title TypeError: svg.selectAll(...).data(...).join(...).on(...).attr(...).transition is not a function TypeError: svg.selectAll(...).data(...).join(...).on(...).attr(...).transition is not a function and TypeError: Cannot read property 'name' of undefined Jun 11, 2021
@jm27
Copy link

jm27 commented Jul 6, 2021

Hi,
I added a parameter to the on-click event handler and updated npm packages.
Changess
changes
This fixes the issue.

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

2 participants