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

Get several instances of @material-ui/styles initialised in this application warning. #617

Closed
ankitpatelinitio opened this issue Dec 19, 2019 · 2 comments
Labels
Awaiting Information further information is requested

Comments

@ankitpatelinitio
Copy link

  I developed my own progress bar npm and publish it. I am using @material-ui/core npm to apply CSS styles on the progress bar.

  After successfully publish my npm and install this npm package into my existing application. But @material-ui/core npm is already installed in my existing application and progress bar npm also. So When I install progress bar npm in my existing application and run it at that time it gives me a below warning and my progress bar npm not working.

  It looks like there are several instances of @material-ui/styles initialized in this application. This may cause theme propagation issues, broken class names, specificity issues, and makes your application bigger without a good reason.

  I refer https://material-ui.com/getting-started/faq/#i-have-several-instances-of-styles-on-the-page document also but not get any solution

  Anyone, please suggest me a solution.
@mikemimik
Copy link
Contributor

Hello @ankitpatelinitio is it possible for you to link the repository you're speaking about? I am a little confused on some details. Thanks in advance!

@mikemimik mikemimik added Community Awaiting Information further information is requested labels Dec 19, 2019
@ankitpatelinitio
Copy link
Author

Hello, @mikemimik Here is npm link that I am created. https://www.npmjs.com/package/my-test-react-component

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Information further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants