Skip to content

React 19 + Bootstrap 4 = findDOMNode is not a function #6967

@stanleyume

Description

@stanleyume

Prerequisites

Describe the bug

"react-bootstrap": "^1.6.8",
"bootstrap": "^4.6.2",
"react": "19.1.1",

We just upgraded React from 18 to 19, and now react-bootstrap is broken.

findDOMNode, which was deprecated in React 18 is now removed in React 19.

I saw that this issue was fixed in react-bootstrap v2 which was made for Bootstrap 5, but we cannot upgrade to bootstrap 5 right now, unfortunately.

Do we also have a fix for react-bootstrap v1? Or what would you suggest?
Thank you 🙏

Image

Expected behavior

No response

To Reproduce

No response

Reproducible Example

https://codesandbox.io/p/sandbox/nostalgic-water-gjqkyj

Screenshots

Image

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?

1.6.8

What version of Bootstrap are you using?

4.6.2

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions