You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Activity
ricmoo commentedon May 13, 2022
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? :)
psytron commentedon May 14, 2022

Using: https://raw.githubusercontent.com/ethers-io/ethers.js/master/packages/ethers/dist/ethers.esm.jspsytron commentedon May 20, 2022
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 :)
ricmoo commentedon May 20, 2022
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.
Fix WebWorker support in rollup files (#2976).
ricmoo commentedon May 21, 2022
This should be fixed in 5.6.7. Please try it out and let me know.
Thanks! :)
psytron commentedon May 22, 2022
Confirmed imports perfectly now
ethers.version => 'ethers/5.6.7'
Excellent !! Thank You! :)
Fix WebWorker support in rollup files (ethers-io#2976).