Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jplwood opened this issue Apr 23, 2020 · 1 comment

Comments

@jplwood
Copy link

jplwood commented Apr 23, 2020

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.

@dustinsoftware
Copy link
Member

dustinsoftware commented Apr 27, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants