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

Type erros in @mui/utils #43020

Closed
1 task done
Methuselah96 opened this issue Jul 21, 2024 · 1 comment · Fixed by #43029
Closed
1 task done

Type erros in @mui/utils #43020

Methuselah96 opened this issue Jul 21, 2024 · 1 comment · Fixed by #43029
Assignees
Labels
bug 🐛 Something doesn't work regression A bug, but worse typescript

Comments

@Methuselah96
Copy link
Contributor

Methuselah96 commented Jul 21, 2024

Search keywords

type errors @mui/utiles

Latest version

  • I have tested the latest version

Steps to reproduce

Link to live example: (required)

Steps:

  1. Start a TypeScript project with @mui/material using a strict package manager (e.g., pnpm or Yarn PnP) and with skipLibCheck set to false

Current behavior

Type errors:

Error: ./node_modules/@mui/utils/appendOwnerState/appendOwnerState.d.ts(2,26): error TS2307: Cannot find module '@mui/types' or its corresponding type declarations.
Error: ./node_modules/@mui/utils/mergeSlotProps/mergeSlotProps.d.ts(3,26): error TS2307: Cannot find module '@mui/types' or its corresponding type declarations.
Error: ./node_modules/@mui/utils/useSlotProps/useSlotProps.d.ts(33,253): error TS2307: Cannot find module '@mui/types' or its corresponding type declarations.

This is caused by the fact that @mui/utils references @mui/types, but does not have a dependency on it.

Expected behavior

No type errors

Context

No response

Your environment

npx @mui/envinfo
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.
@Methuselah96 Methuselah96 added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Jul 21, 2024
@oliviertassinari
Copy link
Member

oliviertassinari commented Jul 21, 2024

A regression from #42907, I guess.

@oliviertassinari oliviertassinari added typescript bug 🐛 Something doesn't work regression A bug, but worse labels Jul 21, 2024
@ZeeshanTamboli ZeeshanTamboli removed the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work regression A bug, but worse typescript
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants