timhall / svelte-apollo

Svelte integration for Apollo GraphQL
MIT License
947 stars 68 forks source link

External dependency warning after upgrade to `@apollo/client` #67

Closed imCorfitz closed 3 years ago

imCorfitz commented 3 years ago

How to configure Rollup in order to avoid this?

Screenshot 2020-10-28 at 15 49 40

andres-mestra commented 3 years ago

I fixed the bug with:

 import {ApolloClient, InMemoryCache, HttpLink,} from '@apollo/client/core';

importing only the core

imCorfitz commented 3 years ago

There we go! Easy as 𝛑! Yesterday I merged a PR https://github.com/ImCorfitz/sapper-w-svelte-apollo/pull/7 which also did exactly this, so yeah. Awesome!