BetterTyped / hyper-fetch

⚡ Fetching and realtime data exchange framework.
https://hyperfetch.bettertyped.com/
Apache License 2.0
1.02k stars 27 forks source link

Not working with Sveltekit #39

Closed Jedliu closed 1 year ago

Jedliu commented 1 year ago

Describe the bug Not working with SvelteKit.

To Reproduce Steps to reproduce the behavior:

  1. Go to this repository on stackblitz
  2. Check the error in the browser console
    TypeError: import_events4.default is not a constructor
  3. Uncomment this code in page.js
    // const [data, error, status] = await getData.send();
  4. New error occurs in terminal
    ReferenceError: window is not defined

Screenshots hyper-fetch

Additional context There are few demos and the documents is not sufficient to start working with. Thank you!

prc5 commented 1 year ago

@Jedliu The same thing as in #42 . We are going to solve it today or tomorrow. Thanks for support!

Jedliu commented 1 year ago

Looking foward to the fix so we could have a try with Hyper-Fetch. This looks very promising. Thanks!

prc5 commented 1 year ago

@Jedliu Released update, should be good now 👍🏻 I'm looking forward to some feedback! 😄

Jedliu commented 1 year ago

This works like a charm. Thanks!