Skip to content
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

3-arrow-functions.js - tried all gist examples. #6

Open
sectortwofive opened this issue Dec 11, 2020 · 1 comment
Open

3-arrow-functions.js - tried all gist examples. #6

sectortwofive opened this issue Dec 11, 2020 · 1 comment

Comments

@sectortwofive
Copy link

Tried all examples on gist, they all produce the same error.

console.log(tasks.getTasksToDo())
^

TypeError: tasks.getTasksToDo is not a function
at Object. (/home/nemi/code/playground/3-arrow-functions.js:16:19)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
at internal/main/run_main_module.js:17:47
[nodemon] app crashed - waiting for file changes before starting...

@thazhemadam
Copy link

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]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants