-
-
Notifications
You must be signed in to change notification settings - Fork 750
Closed
Closed
Copy link
Description
Search terms
Error with sub-packages (node_modules)... Can't load the nested package.json
Expected Behavior
the output of the documentation or splitting the project to have the documentation of each parts or sub-modules (i.e. sub npm modules)
Actual Behavior
npx typedoc
TypeDoc exiting with unexpected error:
AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value:
assert(declaration)
at convertVariableAsFunction (/home/luxcium/dev/questrade-ts/node_modules/typedoc/dist/lib/converter/symbols.js:409:5)
at Object.convertVariable (/home/luxcium/dev/questrade-ts/node_modules/typedoc/dist/lib/converter/symbols.js:389:16)
at Object.convertSymbol (/home/luxcium/dev/questrade-ts/node_modules/typedoc/dist/lib/converter/symbols.js:81:79)
at Converter.convertExports (/home/luxcium/dev/questrade-ts/node_modules/typedoc/dist/lib/converter/converter.js:180:23)
at Converter.compile (/home/luxcium/dev/questrade-ts/node_modules/typedoc/dist/lib/converter/converter.js:156:34)
at Converter.convert (/home/luxcium/dev/questrade-ts/node_modules/typedoc/dist/lib/converter/converter.js:42:14)
at Application.convert (/home/luxcium/dev/questrade-ts/node_modules/typedoc/dist/lib/application.js:151:31)
at run (/home/luxcium/dev/questrade-ts/node_modules/typedoc/bin/typedoc:61:25)
at Object.<anonymous> (/home/luxcium/dev/questrade-ts/node_modules/typedoc/bin/typedoc:27:1)
at Module._compile (node:internal/modules/cjs/loader:1108:14) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: undefined,
expected: true,
operator: '=='
}
npm ERR! code 5
npm ERR! path /home/luxcium/dev/questrade-ts
npm ERR! command failed
npm ERR! command sh -c typedoc
npm ERR! A complete log of this run can be found in:
npm ERR! /home/luxcium/.npm/_logs/2021-01-08T17_33_27_412Z-debug.log
Steps to reproduce the bug
{
"entryPoints": [
"./src"
],
"exclude": [
"**/node_modules"
],
"out": "./docs"How you are running TypeDoc + any relevant configuration files
npx typedoc- ./package.json (with
yarn install) - ./typedoc.json
- ./tsconfig.json
- entryPoints": "./src"
- subfolder containing an other node_modules folder: /src/resources/side-effects/
- ./src/resources/side-effects/package.json (with
npm install)
Environment
echo -ne '\ntypedoc --version'; npx typedoc --version; echo -e '\ntsc --version'; npx tsc --version;echo -e '\nnode --version'; node --version; echo -e '\nuname -srvo' ; uname -srvo
-
typedoc --version
TypeDoc 0.20.13
Using TypeScript 4.1.3 from /home/luxcium/dev/questrade-ts/node_modules/typescript/lib -
tsc --version
Version 4.1.3 -
node --version
v15.5.1 -
uname -srvo
Linux 5.9.16-100.fc32.x86_64 Name of commandline tool #1 SMP Mon Dec 21 14:10:00 UTC 2020 GNU/Linux
Metadata
Metadata
Assignees
Labels
No labels