facebook / react

The library for web and native user interfaces.
https://react.dev
MIT License
224.28k stars 45.7k forks source link

Bug: Truffle firefox extension causes a uncaught runtime exception on fresh react app #29152

Closed DamienKatzenberg closed 3 weeks ago

DamienKatzenberg commented 1 month ago

After a few seconds of being in a fresh React app in my browser an uncaught runtime exception occurs. This is due to a failed API call that is originating from the Truffle extension. This extension should only be enabled when on select Youtube channels. My only known fix is to disable the extension.

Error

Failed to call api method: could not connect to provider anyweb-to-anyweb-unprivileged-api-v1 i/</t</i</<@moz-extension://340cd744-b9a5-4f48-9d4b-e147eb049a31/transframe-provider.js:1:1551 i/</t</i<@moz-extension://340cd744-b9a5-4f48-9d4b-e147eb049a31/transframe-provider.js:1:1532 setInterval handler*i/</t<@moz-extension://340cd744-b9a5-4f48-9d4b-e147eb049a31/transframe-provider.js:1:1360 i/<@moz-extension://340cd744-b9a5-4f48-9d4b-e147eb049a31/transframe-provider.js:1:1214 @moz-extension://340cd744-b9a5-4f48-9d4b-e147eb049a31/injected-script/index.js:5:4526

React version: ^18.3.1

Steps To Reproduce

  1. Have Truffle extension enabled
  2. Run any React web app
rickhanlonii commented 3 weeks ago

This is not related to React, seems like a bug in the extension.