Skip to content

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

@mdismer

Description

@mdismer

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions