mcfly icon indicating copy to clipboard operation
mcfly copied to clipboard

getting a hard to track 'undefined is not a function' thrown from Action.js

Open sjmarshy opened this issue 10 years ago • 4 comments

I'm having difficulty figuring out where I've gone wrong as the stack trace doesn't contain any of my files, and none of my files are mentioned in the error.

sjmarshy avatar Feb 12 '15 11:02 sjmarshy

Can I see a code sample to help diagnose?

kenwheeler avatar Feb 12 '15 13:02 kenwheeler

I'm having trouble making a minimal amount of code that demonstrates the problem, as I don't know which bit is causing it - I've been able to use mcfly elsewhere without the problem.

So it becomes a problem of trying to cut bits out of the rather large codebase I have and see when the problem begins. I'll try and figure out where the error is coming from and provide some sample code if I can

sjmarshy avatar Feb 12 '15 13:02 sjmarshy

Have you tried catching the error from the action call directly?

MyActions.createAction(data)
    .catch(e => console.error(e))

?

tomatau avatar Feb 14 '15 18:02 tomatau

I'll give that a go

sjmarshy avatar Feb 16 '15 08:02 sjmarshy