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.

Error function in effects "is not a function"

See original GitHub issue

There seems to be a regression, or the docs are wrong, regarding the signature of an effect-function.

When attempting to use the third parameter sent to an effect-function (documented as “error” – a function you may call if something goes wrong), there console says:

Uncaught TypeError: error is not a function

(… assuming error is the name I gave the third parameter)

Demo: http://codepen.io/anon/pen/VPEYjj (forked from the effects-demo)

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
zacenocommented, Feb 10, 2017

Doc’s are fine now, as far as I’m concerned at the moment anyway 😃 Nice swift work!

1reaction
selfupcommented, Feb 8, 2017

@tunnckoCore jsbin is great for actual debugging 😄

But CodePen is nice to share things with. The console is weird is CodePen as well haha

Read more comments on GitHub >

github_iconTop Results From Across the Web

Effects / Spark AR "ERROR: undefined is not a function"
I'm trying to make a JS effect ...
Read more >
TypeError: "x" is not a function - JavaScript - MDN Web Docs
The JavaScript exception "is not a function" occurs when there was an attempt to call a value from a function, but the value...
Read more >
getStyleAt() is not a function | After Effects Expressions
I just opened a new project and import the old one, then problem fixed. Still don't know the reason. Maybe it's just a...
Read more >
What does the JavaScript error 'is not a function' mean? - Quora
It means you tried to invoke an object using the parenthesis `()` but the object is not a function and therefore not executable....
Read more >
8 Conditions | Advanced R - Hadley Wickham
The function author signals conditions with functions like stop() (for errors), warning() (for warnings), and message() (for messages), then the function user ...
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