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
Production breaks, dev mode works (Apollo client with id default not found.) #1542
Comments
How are you creating the |
@nickmessing an (simplified) example of how it's used in one of our composables: import { useLazyQuery, type UseQueryOptions } from "@vue/apollo-composable";
export function useProductPricing(
variables: { products: string[] },
options: UseQueryOptions = { fetchPolicy: "cache-and-network" }
) {
const { load, error } = useLazyQuery<PriceQueryResult>(
priceQuery,
variables,
options
);
const fetch = async (): Promise<Pricing[]> => {
try {
const result = await load();
if (result !== false) {
const { Price } = result;
return Price;
} else {
console.error('oops something went wrong');
}
} catch (error) {
console.error(error)
}
};
return {
error,
fetch,
};
} |
@mmeester That doesn't show how you are providing the default client. Somewhere you should have
|
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: