-
Notifications
You must be signed in to change notification settings - Fork 58
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
Error "SyntaxError: Unexpected token function" #31
Comments
same here |
Thanks for reporting that, do you have a sample project on github that I can test and reproduce this? |
Can you also try to upgrade node to the latest version and check the version that you have. Some versions does not support the async function |
Hi. I have updated node to v8.9.4. |
What version of Daggraph are you using? Try updating the latest one.. |
"version": "0.2.5", from package.json. |
same error with me too ` `Edit: after updating npm the works fine now. |
Getting the same error after updating to V0.2.5. Before updating It was working as expected |
@gorgeorg The project you mentioned doesn't use dagger and i'm correctly getting this:
Is someone else is still having this issue, try to update npm to the latest version as mentioned by @MohamedISoliman. Please let me know if you manage to fix this, so i can close. |
Sorry my fault about MVP-Clean-Sample. |
@gorgeorg The only issue i'm having with that repo is that the build folder does not exists, so when it asks me to generate a the chart i want, it fails. Will fix that very soon. If i create manually the folder the chart is generated succesfully. The bug has been fixed here #35 |
Closing due to lack of activity. |
Description
There is error when run daggraph in Android project folder.
Steps to reproduce
E:<path_of_android_project>>daggraph
C:\Users<DELETED>\AppData\Roaming\npm\node_modules\daggraph\src\dagger\DaggerAnalyzer.js:13
async function findComponents(projectRootPath){
^^^^^^^^
SyntaxError: Unexpected token function
at Object.exports.runInThisContext (vm.js:76:16)
at Module._compile (module.js:542:28)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object. (C:\Users<DELETED>\AppData\Roaming\npm\node_modules\daggraph\src\router.js:7:25)
at Module._compile (module.js:570:32)
Expected behaviour
Created dependency graph
Screenshot
The text was updated successfully, but these errors were encountered: