-
-
Notifications
You must be signed in to change notification settings - Fork 32.6k
Closed
mui/mui-x
#12479Labels
component: PopperThe React component. See <Popup> for the latest version.The React component. See <Popup> for the latest version.typescript
Description
Steps to reproduce
yarn install && yarn tsc --skipLibCheck=false
Current behavior
node_modules/@mui/base/Unstable_Popup/Popup.d.ts:13:70 - error TS2707: Generic type 'ElementType' requires between 0 and 1 type arguments.
13 declare const Popup: React.ForwardRefExoticComponent<Omit<PopupProps<React.ElementType<any, keyof React.JSX.IntrinsicElements>>, "ref"> & React.RefAttributes<Element>>;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/@mui/material/Popper/Popper.d.ts:46:17 - error TS2707: Generic type 'ElementType' requires between 0 and 1 type arguments.
46 component?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/@mui/material/Popper/Popper.d.ts:53:16 - error TS2707: Generic type 'ElementType' requires between 0 and 1 type arguments.
53 Root?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Found 3 errors in 2 files.
Errors Files
1 node_modules/@mui/base/Unstable_Popup/Popup.d.ts:13
2 node_modules/@mui/material/Popper/Popper.d.ts:46
Expected behavior
No typescript errors
Context
looks like this error started from the release yesterday.
Your environment
npx @mui/envinfo
System:
OS: macOS 14.2.1
Binaries:
Node: 18.16.1 - ~/.nvm/versions/node/v18.16.1/bin/node
Yarn: 1.22.18 - /opt/homebrew/bin/yarn
npm: 9.5.1 - ~/.nvm/versions/node/v18.16.1/bin/npm
Browsers:
Chrome: 120.0.6099.129
Edge: 120.0.2210.91
Safari: 17.2.1
npmPackages:
@emotion/react: 11.11.3
@emotion/styled: 11.11.0
@mui/base: 5.0.0-beta.30
@mui/core-downloads-tracker: 5.15.3
@mui/material: 5.15.3
@mui/private-theming: 5.15.3
@mui/styled-engine: 5.15.3
@mui/system: 5.15.3
@mui/types: 7.2.12
@mui/utils: 5.15.3
@types/react: 17.0.74
react: 17.0.2
react-dom: 17.0.2
typescript: ~5.2.0 => 5.2.2
Search keywords: Typescript tsc GenericType
freben, garyjohnson, pjungermann, jonystn, jamieklassen and 12 more
Metadata
Metadata
Assignees
Labels
component: PopperThe React component. See <Popup> for the latest version.The React component. See <Popup> for the latest version.typescript