Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rreusser/typedoc-repro
Reproducing a possible typedoc issue
https://github.com/rreusser/typedoc-repro
Last synced: 7 days ago
JSON representation
Reproducing a possible typedoc issue
- Host: GitHub
- URL: https://github.com/rreusser/typedoc-repro
- Owner: rreusser
- Created: 2020-12-30T18:39:49.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2020-12-30T19:06:05.000Z (almost 4 years ago)
- Last Synced: 2024-10-26T12:19:13.614Z (2 months ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# typedoc-repro
## Steps to reproduce
```
npm install
npm run build:docs
```Reproducing a possible typedoc issue. I am able to use `tsc` via `npm run build` successfully and obtain the expected output, but `typedoc` via `npm run build:docs` yields the failed assertion:
Reported at [TypeStrong/typedoc#1437](https://github.com/TypeStrong/typedoc/issues/1437)
```
npm run build:docs <<<> typedoc-repro@ build:docs /path/to/tsdoctest
> typedocDebug: Arguments reader reading with: []
Debug: Arguments reader reading with: []
Debug: Using TypeScript 4.1.3 from /path/to/tsdoctest/node_modules/typescript/lib
Debug: Converting with 1 programs
Debug: Begin readme search at /path/to/tsdoctest/src
TypeDoc exiting with unexpected error:
{ AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value:assert(declaration)
at Object.convertTypeAlias (/path/to/tsdoctest/node_modules/typedoc/dist/lib/converter/symbols.js:103:5)
at Object.convertSymbol (/path/to/tsdoctest/node_modules/typedoc/dist/lib/converter/symbols.js:75:79)
at Converter.convertExports (/path/to/tsdoctest/node_modules/typedoc/dist/lib/converter/converter.js:167:23)
at Converter.compile (/path/to/tsdoctest/node_modules/typedoc/dist/lib/converter/converter.js:143:34)
at Converter.convert (/path/to/tsdoctest/node_modules/typedoc/dist/lib/converter/converter.js:42:14)
at Application.convert (/path/to/tsdoctest/node_modules/typedoc/dist/lib/application.js:151:31)
at run (/path/to/tsdoctest/node_modules/typedoc/bin/typedoc:59:25)
at Object. (/path/to/tsdoctest/node_modules/typedoc/bin/typedoc:26:1)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
generatedMessage: true,
name: 'AssertionError [ERR_ASSERTION]',
code: 'ERR_ASSERTION',
actual: undefined,
expected: true,
operator: '==' }
```