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.

Necessary polyfills?

See original GitHub issue

Could you tell me which polyfills this component depends on?

I’m using it in a environment, where I can’t afford including the complete Babel polyfill. I’d like to include only the polyfills that are necessary.

When I use require('core-js/fn/symbol');, I get the following error in IE11:

Object doesn't support property or method 'Symbol(Symbol.iterator)_6.dcz7vm7xaw5'

I also tried another Symbol polyfill with require('es6-symbol/implement');. IE11 says:

Object expected

Are there other polyfill dependencies apart from Symbol?

I’d need to get the component working in IE10 and IE11. I’m using version 0.3.2 of the component, as I still have to use React 0.13.3. I’ve also uploaded a repo demonstrating the issue here.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
binarykitchencommented, Jan 9, 2017

It is documented somewhere what the prerequisites are for each es6 module?

0reactions
wubcommented, Mar 26, 2017

If it’s still not working for you guys, try changing:

for (let foo in bar)

to

for (let foo in Array.from(bar))

Make sure you polyfill Array.from.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Polyfills and transpilers - The Modern JavaScript Tutorial
We just need to declare the missing function. A script that updates/adds new functions is called “polyfill”. It “fills in” the gap and...
Read more >
How to load polyfills only when needed
I know three ready-to-use approaches for that: polyfill.io; the module / nomodule pattern; the useBuiltIns option in @babel/preset-env ...
Read more >
Polyfill - MDN Web Docs Glossary: Definitions of Web-related ...
A polyfill is a piece of code (usually JavaScript on the Web) used to ... adjust the styling as appropriate, or whatever else...
Read more >
Polyfill.io
It's a service which accepts a request for a set of browser features and returns only the polyfills that are needed by the...
Read more >
When and How to Use Polyfills - Bits and Pieces - Bit.dev
A polyfill is a piece of code (usually JavaScript on the Web) used to provide modern functionality on older browsers that do not...
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