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

TypeError: ts.isIdentifierOrPrivateIdentifier is not a function #1387

Closed
serge-hulne opened this issue Oct 31, 2020 · 2 comments
Closed

TypeError: ts.isIdentifierOrPrivateIdentifier is not a function #1387

serge-hulne opened this issue Oct 31, 2020 · 2 comments
Labels
bug Functionality does not match expectation

Comments

@serge-hulne
Copy link

serge-hulne commented Oct 31, 2020

$ tsc -v
Version 3.2.2

TypeDoc 0.19.2
Using TypeScript 3.2.2 from C:\Users\serge\AppData\Roaming\npm\node_modules\typescript\lib

test carried out:

 typedoc --out docs ./axino

Were axino is a directory containing ts souce code:

$ ls axino/
button.ts  channel.ts   constants.ts  div.ts     examples-electron-1/  index.html  label.ts  list.ts        olist.ts      radio.ts   select.ts  testing.ts
canvas.ts  checkbox.ts  core.ts       examples/  form.ts               input.ts    LICENSE   markdown.html  package.json  README.md  table.ts   textarea.ts

Error message :

C:\Users\serge\AppData\Roaming\npm\node_modules\typedoc\dist\lib\converter\context.js:195
    return node['name'] && (ts.isIdentifierOrPrivateIdentifier(node['name']) ||
                               ^

TypeError: ts.isIdentifierOrPrivateIdentifier is not a function
    at isNamedNode (C:\Users\serge\AppData\Roaming\npm\node_modules\typedoc\dist\lib\converter\context.js:195:32)
    at Context.getSymbolAtLocation (C:\Users\serge\AppData\Roaming\npm\node_modules\typedoc\dist\lib\converter\context.js:48:24)
    at Object.createDeclaration (C:\Users\serge\AppData\Roaming\npm\node_modules\typedoc\dist\lib\converter\factories\declaration.js:80:32)
    at VariableConverter.convert (C:\Users\serge\AppData\Roaming\npm\node_modules\typedoc\dist\lib\converter\nodes\variable.js:59:34)
    at Converter.convertNode (C:\Users\serge\AppData\Roaming\npm\node_modules\typedoc\dist\lib\converter\converter.js:117:53)
    at node.declarationList.declarations.forEach (C:\Users\serge\AppData\Roaming\npm\node_modules\typedoc\dist\lib\converter\nodes\variable-statement.js:26:32)
    at Array.forEach (<anonymous>)
    at VariableStatementConverter.convert (C:\Users\serge\AppData\Roaming\npm\node_modules\typedoc\dist\lib\converter\nodes\variable-statement.js:21:47)
    at Converter.convertNode (C:\Users\serge\AppData\Roaming\npm\node_modules\typedoc\dist\lib\converter\converter.js:117:53)
    at statements.forEach (C:\Users\serge\AppData\Roaming\npm\node_modules\typedoc\dist\lib\converter\nodes\block.js:66:28)
@serge-hulne serge-hulne added the bug Functionality does not match expectation label Oct 31, 2020
@Gerrit0
Copy link
Collaborator

Gerrit0 commented Oct 31, 2020

Duplicate of #1257. You're running on an unsupported version of TypeScript. The supported versions for 0.19 are 4.0.x and 3.9.x.

In addition to the warning #1257 talks about, 0.19.2 also warns when you run TypeDoc with an unsupported TS version.

@serge-hulne
Copy link
Author

Thank you very much!

Congratulations for TypeDoc !
and all my apologies :-)

@Gerrit0 Gerrit0 closed this as completed Oct 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Functionality does not match expectation
Projects
None yet
Development

No branches or pull requests

2 participants