Skip to content

Can't use apollo composables when @vue/apollo-composable isn't directly inside node_modules #519

@oosame

Description

@oosame

Environment

  • Operating System: Linux
  • Node Version: v16.20.0
  • Nuxt Version: 3.6.0
  • Nitro Version: -
  • Package Manager: NPM
  • Builder: webpack
  • User Config: -
  • Runtime Modules: -
  • Build Modules: -

Describe the bug

using useLazyAsyncQuery or any of the other apollo composable but useAsyncQuery results in the following import bug

[plugin:vite:import-analysis] Failed to resolve import "@vue/apollo-composable" from "pages/sink.vue". Does the file exist?

image

Expected behaviour

I should be able to use the other composables according to the docs, right?

Reproduction

No response

Additional context

No response

Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions