Problem with @Stimulus/polyfills for IE11

Hi

With the @stimulus/polyfills package imported I still get an error TypeError: Object doesn't support property or method 'after' [object Object] in IE11.

I have babel-polyfill imported at the start of the application.js file. If I add a ChildNode.after() polyfill (from: https://github.com/jserz/js_piece/blob/master/DOM/ChildNode/after()/after().md as noted at https://developer.mozilla.org/en-US/docs/Web/API/ChildNode/after) then it will work as expected in IE11.

Am I missing some other polyfill / config?

Thanks

Stimulus doesn’t use the ChildNode.after() API: https://github.com/stimulusjs/stimulus/search?q=after&type=Code

Are you using it in your own application code?

Ahh yes! The error message shown in the Developer Console from IE was a bit obscure and made it look like Stimulus was raising the error but, of course, the code was in my controller and not in stimulus.

Mystery solved - thanks javan