question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

zoom.js:91 Uncaught TypeError: selection.interrupt is not a function

See original GitHub issue

Describe the Bug

I updated from 9.7.4 to 10.0.3. I went through the migration instructions and am now getting this error. I was able to get the error when setting up react-flow even with no data being passed in and no custom options. This makes me think it is due to a incorrectly pinned dependency but I haven’t dug into the issue in detail yet.

zoom.js:91 Uncaught TypeError: selection.interrupt is not a function
    at Function.zoom.transform (zoom.js:91:1)
    at slicedToArray.js:7:1

I believe it is coming from d3-zoom

in my packages

├─┬ @amcharts/amcharts5@5.1.8
│ └─┬ d3@6.7.0
│   └── d3-zoom@2.0.0
└─┬ react-flow-renderer@10.0.3
  └── d3-zoom@3.0.0

Your Example Website or App

No response

Steps to Reproduce the Bug or Issue

Install 10.0.3 and likely have another library that also has d3 installed (such as amcharts)

Expected behavior

I expected the page to not crash 🤷

Screenshots or Videos

No response

Platform

Does not seem platform dependent but tried in chrome and safari on OSX

Additional context

No response

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:4
  • Comments:20 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Michael-Xiecommented, Jul 29, 2022

Just tried to convert from v9 to v10 and this issue still exists

"react-flow-renderer": "^10.3.12"
1reaction
santhedancommented, May 5, 2022

@moklick Here is the Grafana plugin repo where this is reproducible.

https://github.com/philips-labs/grafana-bpm-plugin

Read more comments on GitHub >

github_iconTop Results From Across the Web

selection.interrupt is not a function (using ZoomableGroup wih ...
Here is the error: Uncaught TypeError: selection.interrupt is not a function at push../node_modules/d3-zoom/src/zoom.js.
Read more >
How to solve JS errror in third party package - react-force-graph
The error comes from zoom.js which is dependency of ... *Uncaught TypeError: selection.interrupt is not a function at Function.
Read more >
D3.js selection.interrupt() Function - GeeksforGeeks
Return Value: This function returns a new transition on the given selection with the specified name. Below programs illustrate the selection.
Read more >
typeerror: favicons is not a function - You.com | The search engine ...
I would like to use react-force-graph in my app, but I am getting an error Uncaught TypeError: selection.interrupt is not a function. The...
Read more >
TypeError: a is not a function at oY.join (zoomus-websdk ...
TypeError : a is not a function at oY.join ... When I join a meeting host account Y, a draggable zoom meeting appears,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found