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: Cannot read properties of undefined (reading 'getSourceFile') #2175

Closed
loopingz opened this issue Feb 20, 2023 · 0 comments
Closed
Labels
bug Functionality does not match expectation

Comments

@loopingz
Copy link
Contributor

Search terms

TypeError
getSourceFile
getJsDocComment

Expected Behavior

Being able to build

Actual Behavior

Build failed

Steps to reproduce the bug

Not sure what file generates this, but safeguard are not in place in source code

TypeDoc exiting with unexpected error:
TypeError: Cannot read properties of undefined (reading 'getSourceFile')
    at getJsDocComment (/Users/loopingz/Git/webda.io/node_modules/typedoc/dist/lib/converter/comments/index.js:93:30)
    at getComment (/Users/loopingz/Git/webda.io/node_modules/typedoc/dist/lib/converter/comments/index.js:68:16)
    at Context.postReflectionCreation (/Users/loopingz/Git/webda.io/node_modules/typedoc/dist/lib/converter/context.js:125:60)
    at Context.createDeclarationReflection (/Users/loopingz/Git/webda.io/node_modules/typedoc/dist/lib/converter/context.js:115:14)
    at Object.convertProperty (/Users/loopingz/Git/webda.io/node_modules/typedoc/dist/lib/converter/symbols.js:347:32)
    at convertSymbol (/Users/loopingz/Git/webda.io/node_modules/typedoc/dist/lib/converter/symbols.js:135:41)
    at Object.convertAlias (/Users/loopingz/Git/webda.io/node_modules/typedoc/dist/lib/converter/symbols.js:411:9)
    at convertSymbol (/Users/loopingz/Git/webda.io/node_modules/typedoc/dist/lib/converter/symbols.js:135:41)
    at Converter.convertExports (/Users/loopingz/Git/webda.io/node_modules/typedoc/dist/lib/converter/converter.js:200:41)
    at /Users/loopingz/Git/webda.io/node_modules/typedoc/dist/lib/converter/converter.js:154:30

return getJsDocComment(
can send an undefined declaration to the method getJsDocComment

I'll provide the PR

@loopingz loopingz added the bug Functionality does not match expectation label Feb 20, 2023
loopingz added a commit to loopingz/typedoc that referenced this issue Feb 20, 2023
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

1 participant