Roots Discourse

CustomEvent error in IE11 and custom-event-polyfill

Hi, this is an extension of this thread:


that is closed, so I’m unable to ask there.

Basically, to solve the error sage needs the polyfill custom-event-polyfill

Where is the correct place to include it?

Thanks

Just install it like mentioned on the repo and import it in the router file, should be all there is to it.

I imported it at beginning of main.js

// import external dependencies
import 'custom-event-polyfill';
import 'jquery';
...

It should be the beginning of all Javascripts, am I wrong?

Yeah, that’s fine to import there!

1 Like

This topic was automatically closed after 42 days. New replies are no longer allowed.