Skip to content

Vue apollo v3.0.5 not compatible with apollo client v3 despite having apparently being fixed #1125

Open
@bfutterleib

Description

@bfutterleib

Describe the bug
I can see from your commit here that you updated the package dependencies to use @apollo/client": "^3.2.1". However it does not appear that you correctly followed the apollo client v3 migration docs to change the import statements for apollo client see line 4 here for example.

Unless theres something else going on this would explain why our current project using

  • vue-apollo v3.0.5
  • @apollo/client v3.2.5

is having the following errors when we build our dev server (and our production code as well).

node_modules/vue-apollo/types/apollo-provider.d.ts(4,30):
TS2307: Cannot find module 'apollo-client'.

node_modules/vue-apollo/types/options.d.ts(8,8):
TS2307: Cannot find module 'apollo-client'.

node_modules/vue-apollo/types/vue-apollo.d.ts(11,8):
TS2307: Cannot find module 'apollo-client'.

To Reproduce
create simple vue project using quasar cli (as it makes everything easy).

  • install vue-apollo v3.0.5
  • @apollo/client v3.2.5

Expected behavior
apollo client v3 docs clearly state that that imports must follow the new syntax of
import { ApolloClient } from "@apollo/client/core"

instead of
import { ApolloClient } from 'apollo-client'

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