小编dvc*_*ior的帖子

Empty documentation.json in Compodocs + Storybook + Angular 9

I started to use compodoc + storybook in a Angular 9 project.

Installed all the dependencies and Storybook is working fine, but for some reason the documentation.json generated by compodoc is empty, like this:

{
    "pipes": [],
    "interfaces": [],
    "injectables": [],
    "classes": [],
    "directives": [],
    "components": [],
    "modules": [],
    "miscellaneous": [],
    "routes": [],
    "coverage": {
        "count": 0,
        "status": "low",
        "files": []
    }
}
Run Code Online (Sandbox Code Playgroud)

The command I'm using is:

compodoc -p .storybook/tsconfig.json -e json -d ./.storybook
Run Code Online (Sandbox Code Playgroud)

And my tsconfig.json is:

{ …
Run Code Online (Sandbox Code Playgroud)

angular storybook compodoc angular9 angular-storybook

5
推荐指数
2
解决办法
2120
查看次数