node-course-v3-code
node-course-v3-code copied to clipboard
3-arrow-functions.js - tried all gist examples.
Tried all examples on gist, they all produce the same error.
console.log(tasks.getTasksToDo()) ^
TypeError: tasks.getTasksToDo is not a function
at Object.
This happened to me many times because of circular dependency, check if you have 2 classes that are requiring each other, remove one of them from requiring the other and the issue should be solved [1]
Check if this solves your issue.
References: [1]