You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm still on Bootstrap 4 so I'm using 1.6.6, and after upgrading React typings recently I ran into this error coming from React Bootstrap's Popover typings:
error TS2430: Interface 'PopoverProps' incorrectly extends interface 'Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">'.
Types of property 'content' are incompatible.
Type 'boolean | undefined' is not assignable to type 'string | undefined'.
Type 'boolean' is not assignable to type 'string'.
6 export interface PopoverProps extends React.ComponentPropsWithoutRef<'div'>, BsPrefixPropsWithChildren {
~~~~~~~~~~~~
Found 1 error in node_modules/react-bootstrap/esm/Popover.d.ts:6
I think this line just needs to be updated from boolean to string, but I'm not sure because I don't even see this line on the main branch anymore:
Prerequisites
Describe the bug
Hello,
I'm still on Bootstrap 4 so I'm using 1.6.6, and after upgrading React typings recently I ran into this error coming from React Bootstrap's Popover typings:
I think this line just needs to be updated from
boolean
tostring
, but I'm not sure because I don't even see this line on the main branch anymore:react-bootstrap/src/Popover.tsx
Line 21 in 14add73
Expected behavior
No errors when compiling types
To Reproduce
npm install && npx tsc --noEmit
Reproducible Example
https://github.com/hueter/react-bootstrap-typings-bug/tree/main
Screenshots
What operating system(s) are you seeing the problem on?
No response
What browser(s) are you seeing the problem on?
No response
What version of React-Bootstrap are you using?
1.6.6
What version of Bootstrap are you using?
4.6.2
Additional context
The text was updated successfully, but these errors were encountered: