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.

Doesn't work in IE11 (even when using core-js)

See original GitHub issue

the error is:

Syntax error

image

I have

import 'core-js';

at the top of my file

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
venturalpcommented, Jun 25, 2020

Hi @Jossnaz, I had the same issue and I found out that I could solve that by using, along with corejs, a different import source for my stores: import { create } from 'zustand/index.cjs'

Could you please try that and tell us if it solves?

2reactions
torian257xcommented, Jun 25, 2020

I added, apart from the polyfills, this:

import { create } from 'zustand/index.cjs.js

and it seems to work.

thanks a lot, would be nice to have it as well in the readme

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular polyfills core-js not working as expected on IE11
All your polyfills should go before any imports in polyfills.ts file: * * This file is divided into 2 sections: * 1. Browser...
Read more >
Support older Microsoft browsers and Office versions
Internet Explorer 11 doesn't support JavaScript versions later than ES5. If you want to use the syntax and features of ECMAScript 2015 or...
Read more >
Is your Vue app not working in IE 11? Here's how to fix it.
The main reason why your Vue app is breaking in IE11 is because the browser does not support modern JavaScript syntax.
Read more >
How To Fix Your Angular App When It's Not Working in IE11
IE11 needs polyfills since it does not support ES2015 and later features. The polyfills.ts file, which is present in every Angular project, is...
Read more >
IE11 and the Missing Polyfills - DEV Community ‍ ‍
However it would not work for IE11, that's a sad but obvious fact. ... use @babel/polyfill or underlaying core-js to make your application ......
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