You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After updating from version 1.14.0 to 1.15.0 I get error NG0203 telling me my injection context is invalid.
I looked up this problem and encountered this issue. In my cause though I do not have any calls to inject after the asynchronous call. I am also sure that it's the async call to authApi.checkAuthState() which causes the problem, because removing this function call resolves the issue.
Please provide the exception or error you saw
main.ts:5 ERROR RuntimeError: NG0203: The `UserQueriesService` token injection failed. `inject()` function must be called from an injection context such as a constructor, a factory function, a field initializer, or a function used with `runInInjectionContext`. Find more at https://angular.dev/errors/NG0203
Other information
No response
I would be willing to submit a PR to fix this issue
Yes
No
The text was updated successfully, but these errors were encountered:
Please provide the environment you discovered this bug in.
Which area/package is the issue in?
create-analog
Description
I have the following guard for authentication:
which I use as such in my pages:
After updating from version
1.14.0
to1.15.0
I get errorNG0203
telling me my injection context is invalid.I looked up this problem and encountered this issue. In my cause though I do not have any calls to
inject
after the asynchronous call. I am also sure that it's the async call toauthApi.checkAuthState()
which causes the problem, because removing this function call resolves the issue.Please provide the exception or error you saw
Other information
No response
I would be willing to submit a PR to fix this issue
The text was updated successfully, but these errors were encountered: