Closed
Description
Prerequisites
- I am using the correct version of React-Bootstrap for my version of Bootstrap
- I have searched for duplicate or closed issues
- I have read the contributing guidelines
Describe the bug
v2.10.3 of react-boostrap does not work with Typescript. Every react-bootstrap component throws a TS2796
error when compiled.
Expected behavior
it should compile with out errors.
To Reproduce
- create a project with
npx create-react-app my-app --template typescript
- add react-bootstrap
npm add bootstrap react-bootstrap
- use a react-bootstrap component.
import { Alert, Container } from "react-bootstrap";
import "./App.css";
function App() {
return (
<Container>
<Alert>Hello World</Alert>
</Container>
);
}
export default App;
- run
npm run start
Reproducible Example
Screenshots
v2.10.3 is broken.
v2.10.2 works fine!
What operating system(s) are you seeing the problem on?
macOS
What browser(s) are you seeing the problem on?
Chrome
What version of React-Bootstrap are you using?
2.10.3
What version of Bootstrap are you using?
5.3.3
Additional context
No response