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

Object expected error on IE11 #37

Closed
molkemon opened this issue Aug 5, 2019 · 5 comments · Fixed by #38
Closed

Object expected error on IE11 #37

molkemon opened this issue Aug 5, 2019 · 5 comments · Fixed by #38
Assignees
Labels
bug Something isn't working released

Comments

@molkemon
Copy link

molkemon commented Aug 5, 2019

Hello,

timeline is broken in IE11, even the basic examples won't load, error generated in console:
Object expected: vis-timeline-graph2d.min.js (25,19969)

I also tried with the merge timeline-plus branch, same error there.

Both 4.21 and the latest timeline-plus version do load properly in IE11.

In Firefox, loading works fine for all versions.

@siki38
Copy link

siki38 commented Aug 5, 2019

Problem is in util.extend and util.toArray from vis-util which are
var extend = Object.assign;
var toArray = Object.values;
and they are not supported by IE11 :(

@mojoaxel
Copy link
Member

mojoaxel commented Aug 5, 2019

@siki38 Thanks for looking into this! I'll move this issue to vis-util.

@mojoaxel mojoaxel transferred this issue from visjs/vis-timeline Aug 5, 2019
@mojoaxel
Copy link
Member

mojoaxel commented Aug 5, 2019

@Thomaash Can you please configure babel to also support IE11+. Thx!

@mojoaxel mojoaxel added the bug Something isn't working label Aug 5, 2019
@mojoaxel mojoaxel changed the title Timeline is broken in IE11 Object expected error on IE11 Aug 8, 2019
@vis-bot
Copy link
Collaborator

vis-bot commented Aug 13, 2019

🎉 This issue has been resolved in version 1.1.5 🎉

The release is available on:

Your semantic-release bot 📦🚀

@lewdev
Copy link

lewdev commented Apr 14, 2020

I had IE11 issues and just added babel-polyfill and it worked.
See: https://babeljs.io/docs/en/usage
or
https://cdnjs.com/libraries/babel-polyfill

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working released
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants