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

Stackblitz demo: useAsyncQuery works fine, useQuery stops the application in SSR! #585

Open
Iran-110 opened this issue Dec 26, 2023 · 1 comment
Labels

Comments

@Iran-110
Copy link

Iran-110 commented Dec 26, 2023

Environment

Nuxt project info:



Describe the bug

In the server side rendering (SSR) phase, useAsyncQuery works fine but with useQuery leads the application to crash. And, it was impossible to catch the raised exception.

Expected behaviour

The @nuxtjs/apollo should handle errors and the application must continue to run in the server-side rendering (SSR).

Reproduction

Demo: https://stackblitz.com/edit/nuxtjs-apollo-usequery-error?file=README.md

Additional context

No response

Logs

No response

@Iran-110 Iran-110 added the bug label Dec 26, 2023
@Iran-110 Iran-110 changed the title Demo stackblitz: useAsyncQuery works fine, useQuery stops the application! Demo stackblitz: useAsyncQuery works fine, useQuery stops the application in SSR! Dec 27, 2023
@Iran-110 Iran-110 changed the title Demo stackblitz: useAsyncQuery works fine, useQuery stops the application in SSR! Stackblitz demo: useAsyncQuery works fine, useQuery stops the application in SSR! Dec 27, 2023
@Rufflet
Copy link

Rufflet commented Dec 29, 2023

same problem

[Vue Router warn]: uncaught error during route navigation:
[[vite-node] [ERR_LOAD_URL] @vue/apollo-composable
at @vue/apollo-composable] {
  cause: {
    statusMessage: 'Vite Error',
    message: '[vite-node] [ERR_LOAD_URL] @vue/apollo-composable',
    stack: '[vite-node] [ERR_LOAD_URL] @vue/apollo-composable\n' +
      'at @vue/apollo-composable'
  },
  statusCode: 500,
  fatal: false,
  unhandled: false,
  statusMessage: 'Vite Error',
  data: undefined,
  __nuxt_error: true
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants