Closed vdelacerda closed 3 years ago
That looks fine to me - I'm not sure why you'd get this error?
you're using it essentially the way we use it.
However I do notice that your import * as sapper/app
wouldn't work - it's @sapper/server
you need there. So I wonder if the code you've written here isn't exactly as it is in your application.
If you can reproduce with a blank Sapper template I could look into it.
I created my project from the sapper-template : https://github.com/sveltejs/sapper-template And in the src/client.js :
import * as sapper from '@sapper/app';
sapper.start({
target: document.querySelector('#sapper')
});
But I will try from a blank project.
It works from the Sapper Template... Maybe a conflict with my packages
Hello, I am following your setup example but getting this error :+1:
Api client must be configured
In my client.js :
In my server.js :
And I use :
Thanks for your help, your package could be exactly what I need