Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot access 'IoService' before initialization #480

Closed
menelai opened this issue Sep 1, 2022 · 8 comments · Fixed by #482
Closed

Cannot access 'IoService' before initialization #480

menelai opened this issue Sep 1, 2022 · 8 comments · Fixed by #482

Comments

@menelai
Copy link

menelai commented Sep 1, 2022

Uncaught ReferenceError: Cannot access 'IoService' before initialization

/node_modules/ng-dynamic-component/fesm2015/ng-dynamic-component.mjs
/node_modules/ng-dynamic-component/fesm2020/ng-dynamic-component.mjs

Both on line 31

@gund
Copy link
Owner

gund commented Sep 1, 2022

Hey, what version of the lib and Angular are you using?
Also would be nice to have a repro repo online on stackblitz.

@gund gund added the needs info label Sep 1, 2022
@gund
Copy link
Owner

gund commented Sep 1, 2022

Ok I've created a demo myself and can reproduce the issue too.
Seems like a bug indeed.

@gund gund added bug and removed needs info labels Sep 1, 2022
@menelai
Copy link
Author

menelai commented Sep 1, 2022

I use v 14.2.
Here is stackblitz:
https://stackblitz.com/edit/angular-ivy-wzah9d

@viacheslavsaloid
Copy link

The same for me.

Angular: 14.1.3

It works fine on 10.3.1
But broken on 10.5.0

gund added a commit that referenced this issue Sep 1, 2022
gund pushed a commit that referenced this issue Sep 1, 2022
## [10.5.1-next.1](v10.5.0...v10.5.1-next.1) (2022-09-01)

### Bug Fixes

* **lib:** remove circular refs in IoService ([6d225e6](6d225e6)), closes [#480](#480)
@gund
Copy link
Owner

gund commented Sep 1, 2022

🎉 This issue has been resolved in version 10.5.1-next.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@gund
Copy link
Owner

gund commented Sep 1, 2022

Could you please try the next version and let me know if it works?
For some reason stackblitz cannot resolve latest next version...

@gund
Copy link
Owner

gund commented Sep 1, 2022

Ok, I was able to verify this on stackblitz and it's fixed on next, so I will go ahead and release it on latest tag.

@gund gund mentioned this issue Sep 1, 2022
@gund gund closed this as completed in #482 Sep 1, 2022
gund pushed a commit that referenced this issue Sep 1, 2022
## [10.5.1](v10.5.0...v10.5.1) (2022-09-01)

### Bug Fixes

* **lib:** remove circular refs in IoService ([6d225e6](6d225e6)), closes [#480](#480)
@gund
Copy link
Owner

gund commented Sep 1, 2022

🎉 This issue has been resolved in version 10.5.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@gund gund added the released label Sep 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants