Open
Description
Search keywords
type error missing dependency
Latest version
- I have tested the latest version
Steps to reproduce
Steps:
- Start a TypeScript project with
@mui/material
using a strict package manager (e.g., pnpm or Yarn PnP) and withskipLibCheck
set tofalse
Current behavior
Type error:
./node_modules/@mui/material/utils/memoTheme.d.ts(4,14): error TS2307: Cannot find module '@mui/styled-engine' or its corresponding type declarations.
./node_modules/@mui/material/utils/memoTheme.d.ts(6,42): error TS2307: Cannot find module '@mui/styled-engine' or its corresponding type declarations.
./node_modules/@mui/material/utils/memoTheme.d.ts(6,91): error TS2307: Cannot find module '@mui/styled-engine' or its corresponding type declarations.
./node_modules/@mui/material/utils/memoTheme.d.ts(6,132): error TS2307: Cannot find module '@mui/styled-engine' or its corresponding type declarations.
./node_modules/@mui/material/utils/memoTheme.d.ts(6,180): error TS2307: Cannot find module '@mui/styled-engine' or its corresponding type declarations.
./node_modules/@mui/material/utils/memoTheme.d.ts(6,221): error TS2307: Cannot find module '@mui/styled-engine' or its corresponding type declarations.
This is caused by the fact that @mui/material
references @mui/styled-engine
, but does not have a dependency on it.
Expected behavior
No type error
Context
N/A
Your environment
npx @mui/envinfo
"@mui/material": "^6.1.3"
Metadata
Metadata
Assignees
Projects
Status
Selected