TypeError: Cannot read property 'text' of undefined
emlai opened this issue · 0 comments
emlai commented
Using tsviz v1.0.11.
Unfortunately I cannot share the input code as it's proprietary. The input code uses typescript v3.3.3 if that matters.
$ tsviz -r . output.png
/Users/emlai/.nvm/versions/node/v8.11.2/lib/node_modules/tsviz/bin/ts-analyser.js:60
childElement = new ts_elements_1.Method(functionDeclaration.name.text, currentElement, getVisibility(node), getLifetime(node));
^
TypeError: Cannot read property 'text' of undefined
at analyseNode (/Users/emlai/.nvm/versions/node/v8.11.2/lib/node_modules/tsviz/bin/ts-analyser.js:60:82)
at /Users/emlai/.nvm/versions/node/v8.11.2/lib/node_modules/tsviz/bin/ts-analyser.js:70:56
at visitEachNode (/Users/emlai/.nvm/versions/node/v8.11.2/lib/node_modules/tsviz/node_modules/typescript/lib/typescript.js:7255:30)
at Object.forEachChild (/Users/emlai/.nvm/versions/node/v8.11.2/lib/node_modules/tsviz/node_modules/typescript/lib/typescript.js:7412:24)
at analyseNode (/Users/emlai/.nvm/versions/node/v8.11.2/lib/node_modules/tsviz/bin/ts-analyser.js:70:12)
at Object.collectInformation (/Users/emlai/.nvm/versions/node/v8.11.2/lib/node_modules/tsviz/bin/ts-analyser.js:13:5)
at /Users/emlai/.nvm/versions/node/v8.11.2/lib/node_modules/tsviz/bin/tsviz.js:57:54
at Array.map (<anonymous>)
at getModules (/Users/emlai/.nvm/versions/node/v8.11.2/lib/node_modules/tsviz/bin/tsviz.js:57:10)
at Object.createGraph (/Users/emlai/.nvm/versions/node/v8.11.2/lib/node_modules/tsviz/bin/tsviz.js:63:19)