New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is not a function ERROR - this.isModified is not a function #4537
Comments
You are using an arrow operator for the callback, which changes the scope of
|
Ok. Thanks. It works. |
Fix your eslintrc
…On Tue, Nov 29, 2016 at 5:16 AM, Nick Rameau ***@***.***> wrote:
Is there a way to do it with arrow functions? I'm using ES6 and my
eslintrc is complaining about regular callbacks.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#4537 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABi5KbZG27HnF2sX2RwDIhTp4Rz1lIG_ks5rDCW1gaJpZM4J_8-c>
.
|
I had this issue, as well. Thanks for help @VictorGerritsenQLVR! |
Is there a way to change the code to accommodate the arrow operator, rather than using |
@domarp-j Good question. I thought about it and tried to figure it out but I couldn't come up with anything easier than just switching to a regular callback function. Maybe someone else has done it tho. I'll keep an eye on this issue. |
No way to do it, fat arrows use lexical scope for context, no way around it. |
had same issue, thanks for the help |
Hi, was stuck on the same problem with the es6 arrow function. Thank you very much! |
great thank u |
Thanks, works for me too. |
When I use following code:
I receive following Error:
Problem:
this
is not a Document, Query or Schema. It's value is{}
How can I solve that?
The text was updated successfully, but these errors were encountered: