gregnb / gregnb/mui-datatables

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

Open
#2,008 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2.7k
Forks
906
PR merge metrics
No merged PRs in 30d

Description

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 |

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.