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

REPL fails without fetch API #10

Closed
willglynn opened this issue Nov 30, 2016 · 6 comments
Closed

REPL fails without fetch API #10

willglynn opened this issue Nov 30, 2016 · 6 comments
Labels

Comments

@willglynn
Copy link

The REPL depends on fetch, an API for which "Can I use" reports 62.34% global availability. Support is better on desktop than on mobile, but in particular, fetch is not currently available in stable versions of Safari (WebKit #151937) on desktop or mobile.

There is an XHR-based fetch polyfill available.

@sterpe
Copy link

sterpe commented Dec 6, 2016

Ah, wondering why REPL wasn't working. Ok.

@vanwagonet
Copy link
Contributor

As of e3221e3, this is working for me. Can you verify?

@willglynn
Copy link
Author

Is this on the web? The live REPL currently shows Safari:

Svelte generates components that work in all modern JavaScript environments, but the Svelte compiler only runs in Node 6+ and browsers that support ES2015 features. Please reopen this page in a different browser such as Chrome.

@vanwagonet
Copy link
Contributor

I'm able to use the REPL on Safari (10.0.2) are you using an older version of Safari?

@willglynn
Copy link
Author

A-ha! This machine is running Mac OS X 10.11.6/Safari version 9.1.2 (11601.7.7).

@Rich-Harris
Copy link
Member

Ah, yes — we can close this issue. There's a separate one on the main repo (sveltejs/svelte#109) about getting the compiler to work in older environments

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

No branches or pull requests

4 participants