question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fetch polyfill not working with Safari Technology Preview

See original GitHub issue

Using Safari Technology Preview Version 9.1.1 (11601.6.10, 11602.1.25), when I try using fetch:

fetch('/')

It returns a rejected promise:

Promise {status: "rejected", result: "Fetch is not yet implemented"}

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
mislavcommented, Mar 31, 2016

BTW you can force the polyfill taking place if you nulify window.fetch before loading the polyfill:

<script>
  if (detectSafariPreview()) window.fetch = undefined
</script>
<script src="./fetch.js"></script>
Read more comments on GitHub >

github_iconTop Results From Across the Web

javascript - Safari - An error occurred trying to load the resource
It always throws the red text 'An error occurred trying to load the resource'. My initial thought was that the devtool wouldn't support...
Read more >
Mobile Web Inspector doesn't work with Safari 13
I am facing the same problem. I am unable to see my virtual device in safari and also Safari Technology Preview. I am...
Read more >
Apple's Safari Technology Preview is a stable test platform for users ...
Apple's Safari Technology Preview is a stable test platform for users and devs ... I'm working on a project that's using GitHub's whatwg-fetch...
Read more >
Polyfills: everything you ever wanted to know, or maybe a bit ...
You can use promises and fetch and arrow functions and const and let — all the hip new gear — and it will...
Read more >
SystemJS 0.20 - Aligning with browser modules - Guy Bedford
The development loader has to deal with the problem that when ... this mechanism of loading ES modules in the Safari Technology Preview...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found