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

Compatible with svelte@next? #75

Open
janosh opened this issue Dec 12, 2020 · 4 comments
Open

Compatible with svelte@next? #75

janosh opened this issue Dec 12, 2020 · 4 comments

Comments

@janosh
Copy link

janosh commented Dec 12, 2020

If I run

mkdir svelte-next && cd svelte-next && npm init svelte@next && npm i && npm i -D svelte-apollo

and then try to import setClient

<script>
  import Counter from "$components/Counter.svelte";
  import { setClient } from "svelte-apollo";
</script>

in index.svelte, I get

500 Failed to resolve module specifier "process". Relative references must start with either "/", "./", or "../".

Can this be worked around or does svelte-apollo need an update to be used with svelte@next?

@georgecrawford
Copy link

I don't really know what I'm doing, but I think this tip has helped: FredKSchott/snowpack#1477 (reply in thread)

@riez
Copy link

riez commented Jan 3, 2021

did you able to get this working on svelte@next? i'm still trying to findout how to implement graphql client on it..

@janosh
Copy link
Author

janosh commented Jan 3, 2021

@riez Nope, I ended up using simple fetch requests to my GraphQL endpoint instead of an Apollo client. No caching that way, but I'm requesting relatively small amounts of data anyway.

@riez
Copy link

riez commented Jan 3, 2021

I see .. I was thinking to implementing that way too.. but right now I'm trying another package before that..

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

No branches or pull requests

3 participants