ngneat / until-destroy

🦊 RxJS operator that unsubscribe from observables on destroy
https://netbasal.com/
MIT License
1.74k stars 100 forks source link

Angular 15 Directive Composition API: Cannot access [component] before initialization. #219

Closed maximLyakhov closed 1 year ago

maximLyakhov commented 1 year ago

Steps to reproduce:

provider.ts:24 Uncaught ReferenceError: Cannot access 'component' before initialization
    at Module.component (provider.ts:24:2)
    at 84058 (directive.ts:11:31)
    at __webpack_require__ (bootstrap:19:1)
    at 39793 (provider.ts:24:2)
    at __webpack_require__ (bootstrap:19:1)
    at 56546 (token.ts:10:66)
    at __webpack_require__ (bootstrap:19:1)
    at 29142 (main.ts:7:38)
    at __webpack_require__ (bootstrap:19:1)
    at 72513 (main.js:14:70)
arturovt commented 1 year ago

Could you please provide a minimal reproducible example?

maximLyakhov commented 1 year ago

Could you please provide a minimal reproducible example?

https://stackblitz.com/edit/angular-ivy-crmpub

It's running normally on stackblitz, but on freshly created project (nx) throws mentioned error.

arturovt commented 1 year ago

You can create a fresh project, push it to the git and provide a link accordingly.

arturovt commented 1 year ago

I'm not able to reproduce it in a newly created app.