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.

IE11 compatibility (const issue)

See original GitHub issue

flexsearch has compatibility issue with IE11. currently it produces a Const must be initialized error.

Most likely it’s because of the const in the for loop. (https://github.com/nextapps-de/flexsearch/blob/3ceb0e9f8a9887bab0f0b57c1a3e41c4fe4c02f3/dist/flexsearch.pre.js#L28)

any chance we get a IE11 compatible version?

Issue Analytics

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

github_iconTop GitHub Comments

3reactions
timothy-mccarthyfinchcommented, Mar 3, 2020

@ts-thomas any progress on this issue?

do things like this

import FlexSearch from 'flexsearch/dist/flexsearch.es5.js'

1reaction
OneCyruscommented, May 13, 2019

ok just found that there is already a es5 version in the dist folder. though it’s a bit unfortunate that we need to specify this directly. but you can close this if the intention is to use a modern version of the bundle by default.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cross Browser Compatibility of const in Internet Explorer 11
Declares a constant in multiple files without having to specify it repeatedly. LT Browser - Next-gen browser to build, test & debug responsive...
Read more >
const | Can I use... Support tables for HTML5, CSS3, etc
1 const is recognized, but treated like var (no block scope, can be overwritten) · 2 const does not have block scope ·...
Read more >
So i'm using Javascript const keyword, what happens in IE?
IE11 and above supports const but IE10 and below do not. If you attempt to use const in any browser that does not...
Read more >
const, let and spread (not IE11 compatible) · Issue #6
People who need older browsers compatibility are hopefully using some build process where babel can be already introduced. Given that we are ...
Read more >
Fix site display issues with Compatibility View in Internet ...
Learn how to fix website display problems using Compatibility View in Internet Explorer. ... Support for Internet Explorer 11 has ended on June...
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