0

Used the following command to install compodoc

npm install -g @compodoc/compodoc

Now i used the following command to run tsconfig.app.json file

compodoc -p tsconfig.app.json -s

I got the Url where to get the documentation as->http://127.0.0.1:8080.Ican open this URL.But the overview section is balnk.I am not getting any information about the module or injectable part.The exact error(precisely warning) i am getting on the termial is given below

(node:19816) V8: C:\Users\sourav\AppData\Roaming\npm\node_modules@compodoc\compodoc\node_modules\viz.js\viz.js:33 Invalid asm.js: Function definition doesn't match use

R. Richards
  • 24,603
  • 10
  • 64
  • 64
sourav
  • 49
  • 7
  • What happens if you run **compodoc -p tsconfig.json -s** i.e. without the .app extension? – Colin Edwards May 25 '20 at 13:14
  • yes colin .you are correct..if i run the command without .app extension its working fine..Now i can see all the things.Thank you. – sourav May 25 '20 at 18:10

3 Answers3

2

You must be having files Array in tsconfig-app.json. Move content of that files array into includes array. if that array is empty just remove it. then try running this command.

Aakash Garg
  • 10,649
  • 2
  • 7
  • 25
0

use tsconfig.base.json instead of tsconfig.app.json

-1

I had a similar issue of a blank overview. I had no issue with an almost identical project from a little over a year ago. However, Juan Davir Burgos Oquendo answer solved my problem. I used tsconfig.base.json instead of tsconfig.json and got the documentation I expected. (I would have just commented in his comment, but don't have the 50 reputation required.)

DavidW
  • 49
  • 2