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

Hit & miss loading of modules using 1.7.1 #368

Open
tomgreenhill opened this issue Apr 5, 2023 · 3 comments
Open

Hit & miss loading of modules using 1.7.1 #368

tomgreenhill opened this issue Apr 5, 2023 · 3 comments

Comments

@tomgreenhill
Copy link

tomgreenhill commented Apr 5, 2023

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)

Screenshot 2023-04-05 at 13 53 42

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.

@guybedford
Copy link
Owner

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/es-module-shims@1.7.1/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.

@lewisl9029
Copy link
Contributor

I think I might have a fix at #369, would appreciate some 👀 when you have the chance. 🙏

@tomgreenhill
Copy link
Author

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants