React.NET icon indicating copy to clipboard operation
React.NET copied to clipboard

Firefox Console Error: The Components object is deprecated. It will soon be removed.

Open jplwood opened this issue 5 years ago • 1 comments

Steps to reproduce

Open ReactJS.Net project using Webpack recommended setup in firefox, look at the console.


Console error in firefox related to use of non-standard global object, which doesn't even seem to be necessary. As far as I can tell, the Components global that ReactJS.NET has you set up when using webpack, doesn't seem to be using that particular global object for the functionality that seems to be deprecated. This is likely just side-effect of an arbitrary name.

Error: The Components object is deprecated. It will soon be removed.

about it: https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XPCOM/Language_Bindings/Components_object

I was able to suppress this error and have everything still work by renaming the global components variable (e.g., MyComponents).

Unless I'm misunderstanding, I would recommend updating examples/docs to not use this variable name specifically.

jplwood avatar Apr 23 '20 14:04 jplwood

Yeah it should still work fine but you’re right, we should update the template and docs to use another name for the global. My maybe ReactComponents. Feel free to PR...

On Thu, Apr 23, 2020 at 07:52, Justin Leatherwood [email protected] wrote:

Steps to reproduce Open ReactJS.Net project in firefox, look at the console.

Console error in firefox related to use of non-standard global object, which doesn't even seem to be necessary. As far as I can tell, the Components global that ReactJS.NET has you set up, doesn't seem to be using that particular global object for the functionality that seems to be deprecated. This is likely just side-effect of an arbitrary name.

Error: The Components object is deprecated. It will soon be removed.

about it: https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XPCOM/Language_Bindings/Components_object

I was able to suppress this error and have everything still work by renaming the global components variable (e.g., MyComponents).

Unless I'm misunderstanding

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/reactjs/React.NET/issues/1101, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHGCFTFR53X423XKUHCXTLROBIZDANCNFSM4MPDYZIA .

dustinsoftware avatar Apr 27 '20 04:04 dustinsoftware