gregnb / mui-datatables

Datatables for React using Material-UI
MIT License
2.71k stars 934 forks source link

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 1 year ago

mdismer commented 1 year ago

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 commented 1 year ago

I have created a Pull Request for this issue: https://github.com/gregnb/mui-datatables/pull/2009

hugo4711 commented 1 year ago

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