Problem with @Stimulus/polyfills for IE11


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: as noted at then it will work as expected in IE11.

Am I missing some other polyfill / config?


Stimulus doesn’t use the ChildNode.after() API:

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