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

--reqJs error #59

Open
Regala opened this issue May 19, 2021 · 0 comments
Open

--reqJs error #59

Regala opened this issue May 19, 2021 · 0 comments

Comments

@Regala
Copy link

Regala commented May 19, 2021

Hi! I'm getting this error trying to run the command with --reqJs:

callgraph

fisher@Fishers-MBP js-callgraph % js-callgraph --output test.json --reqJs --cg input-scripts/simple-scripts/functioncall-arithmetic.js
/usr/local/lib/node_modules/@persper/js-callgraph/src/requireJsGraph.js:18
        var partialFileName = regexParse[2]  + ".js",
                                        ^

TypeError: Cannot read property '2' of null
    at Object.makeRequireJsGraph (/usr/local/lib/node_modules/@persper/js-callgraph/src/requireJsGraph.js:18:41)
    at Object.build (/usr/local/lib/node_modules/@persper/js-callgraph/src/runner.js:167:28)
    at Object.<anonymous> (/usr/local/lib/node_modules/@persper/js-callgraph/js-callgraph.js:117:5)
    at Module._compile (node:internal/modules/cjs/loader:1108:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1137:10)
    at Module.load (node:internal/modules/cjs/loader:988:32)
    at Function.Module._load (node:internal/modules/cjs/loader:828:14)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:76:12)
    at node:internal/main/run_main_module:17:47`

Any idea on what's wrong?

fisher@Fishers-MBP js-callgraph % node -v
v16.0.0
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

1 participant