using-react-hooks-with-d3 icon indicating copy to clipboard operation
using-react-hooks-with-d3 copied to clipboard

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

Open smanihwr opened this issue 4 years ago • 1 comments

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 avatar Jun 11 '21 19:06 smanihwr

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

jm27 avatar Jul 06 '21 22:07 jm27