diff --git a/apps/doc-gen/src/app/docgen-client.ts b/apps/doc-gen/src/app/docgen-client.ts index 8cc908a5ba..b1c0310390 100644 --- a/apps/doc-gen/src/app/docgen-client.ts +++ b/apps/doc-gen/src/app/docgen-client.ts @@ -89,6 +89,6 @@ export class DocGenClient extends PluginClient { this.eventEmitter.on('compilationFinished', async (build: Build, fileName: string) => { await this.docgen([build]) }) - this.eventEmitter.off('compilationFinished', () => console.log('remove compilationFinished listener')) + this.eventEmitter.removeAllListeners('compilationFinished') } }