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
esm import breaks in web worker #2976
Comments
Are you sure you are on the most recent version of ethers? If so, can you use the non-minified version so you can provide a better line number? :) |
Adding this on line 4909 seems to fix the issue. It imports successfully and ethers appears to be functioning normally in web workers. Hopefully something else isn't breaking or requiring separate version of ethers for non-web-worker use :) |
I've confirmed this issue. Researching how to fix it now, as the dust files are generated by rollup; there is likely some config to make this play nicely with others. |
This should be fixed in 5.6.7. Please try it out and let me know. Thanks! :) |
Confirmed imports perfectly now |
Ethers Version
5.6.esm.min.js
Search Terms
es6 esm import web worker
Describe the Problem
importing ethers in web worker throws exceptions about missing window object
expected behavior: use ethers inside web worker to improve CPU efficiency while rendering UI
Code Snippet
Temp work around ?
Contract ABI
No response
Errors
No response
Environment
No response
Environment (Other)
No response
The text was updated successfully, but these errors were encountered: