BotFramework Web Chat 4.19.1 is still incompatible with React 19 due to removed react-dom APIs
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 72/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- react
- Lĩnh vực
- developer-experience, frontend
Hướng nghiên cứu
Bắt đầu với packages/component/src/providers/CustomElements/customElements/wrapAsCustomElement.ts và tái hiện vấn đề bằng React 19, react-dom 19, [email protected] và một bundler như Webpack 5. Cập nhật việc sử dụng API react-dom đã bị loại bỏ để dùng React root API, sau đó xác minh rằng package đã phát hành được build và chạy với React 19.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Is it an issue related to Adaptive Cards?
No
Is this an accessibility issue?
No
What version of Web Chat are you using?
Latest production
Which distribution are you using Web Chat from?
NPM
Which hosting environment does this issue primarily affect?
Web apps
Which browsers and platforms do the issue happened?
No response
Which area does this issue affect?
Development experience
Which theme pack does this issue affect?
I did not test it on other theme packs
What is the public URL for the website?
No response
Please describe the bug
This is a follow-up to #5552, reported in August 2025.
Although BotFramework Web Chat has since been released as 4.19.1, the published [email protected] package is still incompatible with React 19. It continues to import APIs that React 19 removed:
import { render, unmountComponentAtNode } from 'react-dom';
This blocks React 19 upgrades for downstream applications and packages, including users of @microsoft/omnichannel-chat-widget.
Do you see any errors in console log?
export 'render' was not found in 'react-dom'
export 'unmountComponentAtNode' was not found in 'react-dom'
How to reproduce the issue?
- Install
react@19andreact-dom@19. - Install
[email protected]. - Import and use BotFramework Web Chat in the application.
- Build with a bundler that validates ESM named exports, such as Webpack 5.
- Observe the build errors caused by the removed
react-domexports.
What do you expect?
BotFramework Web Chat should support React 19 by replacing the removed APIs with the React root API:
createRoot(...).render(...)root.unmount()
The published package should build and run with React 19. Alternatively, if React 19 is not supported yet, the package metadata and documentation should make that limitation explicit.
What actually happened?
The build fails because React 19 no longer exports render or unmountComponentAtNode from react-dom.
We verified that these imports are still present in the published botframework-webchat-component artifacts for both 4.19.0 and 4.19.1. They are also still present in the current main source.
Do you have any screenshots or recordings to repro the issue?
No response
Adaptive Card JSON
Additional context
- Original React 19 compatibility report: https://github.com/microsoft/BotFramework-WebChat/issues/5552
- Current implementation on
main: https://github.com/microsoft/BotFramework-WebChat/blob/main/packages/component/src/providers/CustomElements/customElements/wrapAsCustomElement.ts - React 19 upgrade guide: https://react.dev/blog/2024/04/25/react-19-upgrade-guide
The current peer dependency ranges (react >= 16.8.6 and react-dom >= 16.8.6) accept React 19 even though the implementation does not work with it.
- Ngôn ngữ chính
- HTML
- Star
- 1.8k
- Fork
- 1.6k
- Merge trung bình
- 15 giờ 41 phút
- Pull request đã merge (30 ngày)
- 91
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của microsoft/BotFramework-WebChat
-
Bot Services bug customer-reported
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 65/100
microsoft/BotFramework-WebChat#5165 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
4.19.2 Release checklistĐang mởrelease
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 5/100
microsoft/BotFramework-WebChat#5868 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Accessibility PwD-AT Test Pass of 'Bot Framework Web Chat' -WebCó thể đã có người làm @AlankritaSI đã nhận 4 ngày trước. Đang mởA11yTest_Tracking area-accessibility Bot Services BotFrameworkWebChat_Web bug customer-reported HCL-BIC Product-Task-BotFrameworkWebChat Task Web
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 25/100
microsoft/BotFramework-WebChat#5866 · 2 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Bot Services bug customer-reported
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
microsoft/BotFramework-WebChat#5847 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Bot Services bug customer-reported
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
microsoft/BotFramework-WebChat#5846 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của microsoft/BotFramework-WebChat
Issue tương tự
-
untriaged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
dotnet/install-scripts#746 · 1 reaction ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
-
triaged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
fullsend-ai/agents#1786 · 2 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
plugin install: the confirmation hint names 'agmsg' even for an install with another --cmd nameĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
curriculum documentation quality
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
githubnext/gh-aw-workshop#5001 ·
Maintainer thường phản hồi trong vòng 1 ngày