Repository navigation
Description
Overview of the issue
I’m trying to add Compodoc to an existing Angular project. When I use the command npx compodoc -p tsconfig.app.json, it works fine, but the pages generated by the file are empty and blank. When I try to use the file generated by the ng add @compodoc/compodoc command, it returns a "FileNotFound" error.
Operating System, Node.js, npm, compodoc version(s)
MacOs Ventura Version 13.5.2, Angular 15.1.0, npm 8.19.4, "@compodoc/compodoc": "^1.1.22"
Angular configuration, a package.json file in the root folder
tsconfig.doc.json {"include":["src//*.ts"],"exclude":["src//*.spec.ts"]}
tsconfig.app.json {
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "./out-tsc/app",
"types": ["node"]
},
"files": [
"src/main.ts",
"src/polyfills.ts"
],
"include": [
"src//*.d.ts"
],
"types": [
"chrome"
],
"exclude": [
"/*.spec.ts"
]
}
tsconfig.json {
"compileOnSave": false,
"compilerOptions": {
"esModuleInterop": true,
"resolveJsonModule": true,
"paths": {
"@services/": ["src/app/services/"],
"@core/": ["src/app/core/"],
"@mobx-stores/": ["src/app/mobx-stores/"],
"@components/": ["src/app/components/"],
},
"forceConsistentCasingInFileNames": false,
"strict": false,
"noImplicitOverride": false,
"noPropertyAccessFromIndexSignature": false,
"noImplicitReturns": false,
"noFallthroughCasesInSwitch": false,
"downlevelIteration": true,
"baseUrl": "./",
"outDir": "./dist/out-tsc",
"sourceMap": true,
"declaration": false,
"module": "ES2022",
"moduleResolution": "node",
"allowSyntheticDefaultImports": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"importHelpers": true,
"target": "ES2022",
"useDefineForClassFields": false,
"typeRoots": [
"node_modules/@types"
],
"lib": [
"ES2022",
"dom"
]
},
"angularCompilerOptions": {
"enableI18nLegacyMessageIdFormat": false,
"strictInjectionParameters": false,
"strictInputAccessModifiers": false,
"strictTemplates": false
}
}
{
"version": "1.0.2",
"scripts": {
"ng": "ng",
"start": "ng serve -o",
"build": "ng build",
"test": "jest --no-cache",
"lint": "ng lint --quiet",
"lint:fix": "ng lint --quiet --fix",
"e2e": "ng e2e",
"compodoc:build": "npx compodoc -p tsconfig.doc.json",
"compodoc:build-and-serve": "npx compodoc -p tsconfig.doc.json -s",
"compodoc:serve": "npx compodoc -s"
},
"browser": {
"child_process": false,
"http": false,
"https": false,
"net": false,
"path": false,
"stream": false,
"tls": false,
"fs": false
},
"private": true,
"dependencies": {
"@angular/animations": "^15.1.0",
"@angular/cdk": "^15.2.8",
"@angular/common": "^15.1.0",
"@angular/compiler": "^15.1.0",
"@angular/core": "^15.1.0",
"@angular/forms": "^15.1.0",
"@angular/platform-browser": "^15.1.0",
"@angular/platform-browser-dynamic": "^15.1.0",
"@angular/router": "^15.1.0",
"@cds/core": "^6.3.0",
"@circlon/angular-tree-component": "^11.0.4",
"@clr/angular": "^15.0.0-rc.2",
"@clr/icons": "^13.0.2",
"@clr/ui": "^15.1.0",
"@ngx-translate/core": "^14.0.0",
"@ngx-translate/http-loader": "^7.0.0",
"@types/change-case": "^2.3.1",
"@types/chrome": "^0.0.213",
"@types/jest": "^29.5.5",
"@types/js-cookie": "^3.0.2",
"@types/reflect-metadata": "^0.1.0",
"ag-grid-angular": "^29.0.0",
"ag-grid-community": "^29.0.0",
"ag-grid-enterprise": "^29.0.0",
"axios": "0.24.0",
"buffer": "5.6.0",
"change-case": "^4.1.2",
"class-transformer": "^0.5.1",
"exceljs": "^4.3.0",
"jest": "^29.7.0",
"jest-preset-angular": "^13.1.2",
"js-cookie": "^3.0.1",
"jszip": "^3.10.1",
"mobx": "^6.4.1",
"mobx-angular": "^4.7.0",
"moment": "^2.29.4",
"ngx-dropzone": "^3.1.0",
"ngx-toastr": "^16.0.2",
"numeral": "^2.0.6",
"pako": "^2.1.0",
"pdfmake": "^0.2.7",
"reflect-metadata": "^0.1.13",
"rxjs": "~7.8.0",
"tslib": "^2.3.0",
"uuid": "3.3.3",
"xlsx": "0.17.5",
"zone.js": "~0.12.0"
},
"overrides": {
"@circlon/angular-tree-component": {
"mobx": "$mobx"
}
},
"devDependencies": {
"@angular-devkit/build-angular": "^15.1.0",
"@angular-eslint/builder": "15.2.0",
"@angular-eslint/eslint-plugin": "15.2.0",
"@angular-eslint/eslint-plugin-template": "15.2.0",
"@angular-eslint/schematics": "15.2.0",
"@angular-eslint/template-parser": "15.2.0",
"@angular/cli": "^15.1.0",
"@angular/compiler-cli": "^15.1.0",
"@angular/language-service": "^15.1.0",
"@compodoc/compodoc": "^1.1.22",
"@types/node": "^18.18.3",
"@typescript-eslint/eslint-plugin": "5.48.1",
"@typescript-eslint/parser": "5.48.1",
"codelyzer": "^6.0.2",
"cypress": "^11.2.0",
"cypress-file-upload": "^5.0.8",
"cypress-real-events": "^1.7.4",
"eslint": "^8.31.0",
"prettier": "^2.8.4",
"protractor": "^7.0.0",
"ts-node": "^10.9.1",
"typescript": "~4.9.4"
},
"license": "ISC"
}
Compodoc installed globally or locally ?
I've tried both ways
If possible sourcecode of the file where it breaks
Reproduce the error
I just tried to add compodoc following the official documentation guide.
Is there any workaround for this error? I noticed a few open issues related to this bug, but none of them have any answers or fixes. Therefore, I have decided to open a new issue to see if anyone knows what I can do to resolve this.



Activity
[-][BUG][/-][+][BUG] FileNotFoundError: File not found[/+]fix(router): avoid spread import path truncation