compodoc / compodoc

:notebook_with_decorative_cover: The missing documentation tool for your Angular, Nest & Stencil application
https://compodoc.app
MIT License
4k stars 401 forks source link

[BUG] Watch doesn't work #1488

Open ddubrava opened 4 months ago

ddubrava commented 4 months ago
Overview of the issue

The watch option doesn't work. It doesn't rebuild the project on file changes.

Operating System, Node.js, npm, compodoc version(s)
Node v20.14.0
Npm v10.7.0
Windows 10

 "@compodoc/compodoc": "1.1.24", // same for 1.1.25
 "@angular/core": "^17.3.5",
Angular configuration, a package.json file in the root folder

https://github.com/compodoc/compodoc-demo-todomvc-angular/blob/6e89b1746dd6965037f26cdd163a0bba4488dac9/package.json

https://github.com/compodoc/compodoc-demo-todomvc-angular/blob/6e89b1746dd6965037f26cdd163a0bba4488dac9/angular.json

Compodoc installed globally or locally ?

Locally

If possible sourcecode of the file where it breaks

-

If possible your terminal logs before the error

-

Motivation for or Use Case

It's painful to develop without a watch mode.

Reproduce the error

Open any component in /src, try to change something there. https://github.com/compodoc/compodoc-demo-todomvc-angular/tree/6e89b1746dd6965037f26cdd163a0bba4488dac9

Related issues

-

Suggest a Fix

It worked in 1.1.18, starting from 1.1.19 it's broken

wimdeblauwe commented 2 weeks ago

Just starting out with compodoc to generate a JSON file that can be used in storybook. I also don't get the watch mode working unfortunately.

ddubrava commented 2 weeks ago

Just starting out with compodoc to generate a JSON file that can be used in storybook. I also don't get the watch mode working unfortunately.

I did a brute force by rebuilding the entire project each time. It's slow, but I think it's the only way that works

https://github.com/ddubrava/angular-yandex-maps/blob/main/package.json#L9