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

Warning "You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used." when using vite #2008

Open
mdismer opened this issue Jun 28, 2023 · 2 comments

Comments

@mdismer
Copy link

mdismer commented Jun 28, 2023

When using vite a warning "You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used" appears.

Expected Behavior

This warning should not appear.

Steps to Reproduce (for bugs)

  1. create a new project using vite
  2. add mui-datatables

See this repository: https://github.com/mdismer/mui-datatables-vite-warning-example

Your Environment

Tech Version
Material-UI 5.13.5
MUI-datatables 4.3.0
React 18.2.0
browser Firefox 114.0.2
vite 4.3.9
@mdismer
Copy link
Author

mdismer commented Jul 31, 2023

I have created a Pull Request for this issue: #2009

@hugo4711
Copy link

We have the same problem. Is there a solution available?

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