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
{{ message }}
This repository has been archived by the owner on Oct 7, 2024. It is now read-only.
Hey @mcmire ! Sorry for bad pic, updated it. Code that gives an error is just a const keyringController = new KeyringController({}), content on pic is a peace of code after webpack build.
Btw, I solved this yesterday, I guess. The documentation is not clear regarding the complete lib setup. For complete setup we need a lot of polyfills. Im using Webpack 5 and typescript in my project, so the list of polyfills is:
And the second thing, I used webpack.ProvidePlugin to setup global and process identifiers for my build:
Got it, thanks for posting an update and glad you figured it out @ko1ebayev. I agree about the lack of documentation around polyfills. We are revamping this library, but for the time being I've noted this in #199 so it doesn't get lost. Since I answered your question I'll close this issue now!
Hey! Getting this error when trying to instantiate new eth-keyring-controller class in my background script environment:
So service worker registration fails, I am using "@metamask/eth-keyring-controller": "^10.0.0"
Pls help!
The text was updated successfully, but these errors were encountered: