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.

TypeError: cancelable.cancel is not a function

See original GitHub issue

Describe the bug I randomly get this error crashing my application.

To Reproduce

Steps to reproduce the behavior: I don’t know how to reproduce this because it sometimes happens and sometimes does not. It happens immediately when the route in which I load the monaco editor is navigated to.

Expected behavior I expected it not to crash. Setting breakpoints to pause on exception does not pause anywhere. Perhaps by setting break points at all (before monaco loads) I allow it to wait and mount, causing cancellable.cancel to be a defined function.

Screenshots screencapture-localhost-3000-candidate-assessment-locald28cf7ce96cc4697aeb37d2b72612120-1582857075271

Desktop (please complete the following information):

  • OS: Both Windows 10 and MacOs 10.15
  • Browser: Chrome
  • Version: 80

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
sidwebworkscommented, Jun 7, 2022

@suren-atoyan I think the issue still persists in the package due to React 18 strict mode, cause Strict mode simulates mounting and unmounting of components.

1reaction
suren-atoyancommented, Jul 3, 2020

Hi @travisdahl. I’ve just published the new version - v3.4.1 🎉 The behavior of that message is fixed. 🙂

Read more comments on GitHub >

github_iconTop Results From Across the Web

angularjs - $cancelRequest is not a function
I'm using angularjs 1.5.8. I get this error when I'm trying to cancel an http request with angular : $cancelRequest is not a...
Read more >
Event.cancelable - Web APIs - MDN Web Docs
The cancelable read-only property of the Event interface indicates whether the event can be canceled, and therefore prevented as if the ...
Read more >
Cancelling fetch in React and TypeScript | Building SPAs
function assertIsCharacter(data: any): asserts data is Character { if (!("name" in data)) { throw new Error("Not character"); } }.
Read more >
Axios Cancel Request
The source.cancel() function takes a single parameter: an optional error message. The error message is just for passing a reason for the ...
Read more >
Sortable 'cancel' method raises js error "Uncaught TypeError
The underlying problem is that the cancel method passes a fake event object to _mouseUp... but the fake event is just an object...
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