es-module-shims
es-module-shims copied to clipboard
Hit & miss loading of modules using 1.7.1
Hey Guy,
Thanks for your previous assistance!
I'm having issues with modules loading intermittently between refreshes. I'm unsure what's causing it as I receive the following log message:
[Log] ^^ Module TypeError above is polyfilled and can be ignored ^^ (es-module-shims.js, line 1)

But then sometimes the modules on the page don't load. Am using 1.7.1 and can provide a preview link if required. Happy to assist debugging wherever possible.
Thanks.
Hey @tomgreenhill sure we can look into this, it sounds like it might be something around the load events to me, as opposed to the polyfill engaging this time.
Can you run the the debug build of es-module-shims (https://unpkg.com/browse/[email protected]/dist/es-module-shims.debug.js), and share the log output / the difference in logging between a successful and unsuccessful run?
Another thing to try is if the noLoadEventRetriggers
helps or hinders - https://github.com/guybedford/es-module-shims#no-load-event-retriggers.
I think I might have a fix at #369, would appreciate some 👀 when you have the chance. 🙏
So sorry I haven't tested this yet. I've been moving so all over the place. Will try and put some time aside in the next week or so to look over this again. Thanks for the update!