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
In a Manifest V3 environment (browser extension), @metamask/eth-sig-util v7 (and probably v8) (ESM-only), a dep of @trezor/connect-plugin-ethereum, causes runtime errors because @trezor/connect-plugin-ethereum (as of v9.0.5) compiles to CommonJS and does:
This crashes in MV3 service workers because the lib no longer provides a CJS build. Steps to Reproduce:
Use @trezor/connect-plugin-ethereum in a Manifest V3 extension.
Bundle with Webpack or similar.
Observe that the background service worker crashes at runtime due to the ESM/CJS mismatch.
Why It Happens:
@metamask/eth-sig-util v7 is ESM-only.
tslib.__importStar(require(...)) is effectively a CommonJS import.
Manifest V3 service workers require the library to be bundled or imported as ESM.
Please provide an ESM-compatible version of @trezor/connect-plugin-ethereum that imports @metamask/eth-sig-util using native ESM. This would probably resolve the MV3 service worker crash 🙏
The text was updated successfully, but these errors were encountered:
In a Manifest V3 environment (browser extension), @metamask/eth-sig-util v7 (and probably v8) (ESM-only), a dep of @trezor/connect-plugin-ethereum, causes runtime errors because @trezor/connect-plugin-ethereum (as of v9.0.5) compiles to CommonJS and does:
This crashes in MV3 service workers because the lib no longer provides a CJS build. Steps to Reproduce:
Why It Happens:
tslib.__importStar(require(...))
is effectively a CommonJS import.Please provide an ESM-compatible version of @trezor/connect-plugin-ethereum that imports @metamask/eth-sig-util using native ESM. This would probably resolve the MV3 service worker crash 🙏
The text was updated successfully, but these errors were encountered: