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
Describe the bug
When using the latest version of @vue/apollo-composable in dev mode everything works as expected, but when building the project using running the build the following error occurs in the console:
Apollo client with id default not found. Use an app.runWithContext() or provideApolloClient() if you are outside of a component setup.
To Reproduce
// main.js [simplified]import{createApp,h}from"vue";import{ApolloClient,createHttpLink,InMemoryCache,}from"@apollo/client/core";import{provideApolloClient}from"@vue/apollo-composable";// HTTP connection to the APIconsthttpLink=createHttpLink({// Url is handled by proxy and application runs on same domain as graphql serveruri: "/graphql",});// Cache implementationconstcache=newInMemoryCache();// Create the apollo clientconstapolloClient=newApolloClient({link: httpLink,
cache,});provideApolloClient(apolloClient);app.mount("#app");
Additional context
This worked on 4.0.0-beta.11 but something has changed with the release of 4.0.0-beta.12 that makes this break the application and therefor we're unable to upgrade to a non beta version
The text was updated successfully, but these errors were encountered:
Describe the bug
When using the latest version of
@vue/apollo-composable
in dev mode everything works as expected, but when building the project using running the build the following error occurs in the console:To Reproduce
Versions
vue:
^3.3.13
vue-apollo:
^4.0.2
@apollo/client:
^3.7.16
Additional context
This worked on
4.0.0-beta.11
but something has changed with the release of4.0.0-beta.12
that makes this break the application and therefor we're unable to upgrade to a non beta versionThe text was updated successfully, but these errors were encountered: