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

[material-ui][Button] Button from @mui/material conflicts with @react-three/drei #42996

Closed
naveen741 opened this issue Jul 19, 2024 · 3 comments
Assignees
Labels
component: button This is the name of the generic UI component, not the React module! status: waiting for author Issue with insufficient information

Comments

@naveen741
Copy link

naveen741 commented Jul 19, 2024

Steps to reproduce

Link to live example: (required)

Steps:

  1. install "@react-three/drei": "^9.108.4", and @mui/material latest version
  2. When I try to use <Button tag from mui, it throws Type error: Expression produces a union type that is too complex to represent.
  3. When I remove the "@react-three/drei": "^9.108.4", package, its works fine.

Current behavior

it throws Type error: Expression produces a union type that is too complex to represent.

Expected behavior

<Button tag from mui has to be usable, even the "@react-three/drei": "^9.108.4", is installed

Context

No response

Your environment

npx @mui/envinfo
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.

Search keywords: @mui/material conflicts with @react-three/drei

@naveen741 naveen741 added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Jul 19, 2024
@zannager zannager added the component: button This is the name of the generic UI component, not the React module! label Jul 19, 2024
@MikeLautensack
Copy link

If you use the component prop it will fix it.

Example:
image

@zanivan zanivan changed the title Button from @mui/material conflicts with @react-three/drei [material-ui][Button] Button from @mui/material conflicts with @react-three/drei Jul 25, 2024
@ZeeshanTamboli
Copy link
Member

Could you provide a minimal reproduction? It helps us troubleshoot. A live example would be perfect. This StackBlitz sandbox template may be a good starting point.

@ZeeshanTamboli ZeeshanTamboli added status: waiting for author Issue with insufficient information and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Jul 30, 2024
Copy link

github-actions bot commented Aug 7, 2024

Since the issue is missing key information and has been inactive for 7 days, it has been automatically closed. If you wish to see the issue reopened, please provide the missing information.

@github-actions github-actions bot closed this as completed Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: button This is the name of the generic UI component, not the React module! status: waiting for author Issue with insufficient information
Projects
None yet
Development

No branches or pull requests

5 participants