Upgrading to version 2 gives "Client has not been defined yet" in a project with apollo-angular lazy loaded #1559
Unanswered
alexbjorlig
asked this question in
General
Replies: 1 comment
-
Hi @kamilkisiela - I know you are probably super busy, but do you have any hints here? Is it supported to configure Apollo in a lazy loaded module at all? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to upgrade a project from version 1 to 2. No errors when I serve the Angular project, but when the first route resolver tries to get data, I get the error
Client has not been defined yet
.I tried looking in the documentation for lazyloading Graphql modules but did not find anything 😅 I hope you can help me in the right direction.
We are lazy loading the apollo module, here is the before and after example:
before
after
Beta Was this translation helpful? Give feedback.
All reactions