From fd9cb2fe7e40b1fec008b8a2852f54c1a003d750 Mon Sep 17 00:00:00 2001 From: Eugene Olonov Date: Thu, 29 Oct 2026 00:09:19 -0700 Subject: [PATCH 1/2] Bump react-film to 4.0.1-main.202610290630.8324311 for webpack 5 with React 19 react-film 4.0.0 imports render() from react-dom, which React 19 removed; webpack 5 fails on the missing export. 4.0.1 reads it from the default export inside retrofit() only. Pinned to the main dist-tag until 4.0.1 is released. --- package-lock.json | 10 +++++----- packages/component/package.json | 6 +++++- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index 9541b0699c..4abc9fbdf8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -17081,9 +17081,9 @@ } }, "node_modules/react-film": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/react-film/-/react-film-4.0.0.tgz", - "integrity": "sha512-KHhHA+155CBwSq1REa4f9c+68PZUQdISo25JCEnk/2/TuzO+c/feT95usxwO50MCcWyatWefa8chdu0jYIS3WQ==", + "version": "4.0.1-main.202610290630.8324311", + "resolved": "https://registry.npmjs.org/react-film/-/react-film-4.0.1-main.202610290630.8324311.tgz", + "integrity": "sha512-Y8y9MItmZtwrLPX0ltEQhINSSKDtfHzipGlYJT2VlaU8/8YqurFpEMLkOCpgxW0IbrOFlE2DbCzNuO1L6YtEaw==", "license": "MIT", "dependencies": { "@emotion/css": "^11.13.5", @@ -17092,7 +17092,7 @@ "math-random": "^2.0.1", "memoize-one": "^6.0.0", "prop-types": "^15.8.1", - "react-film": "^4.0.0" + "react-film": "^4.0.1-main.202610290630.8324311" }, "peerDependencies": { "react": ">=16.8.0", @@ -22046,7 +22046,7 @@ "punycode": "2.3.1", "react-chain-of-responsibility": "0.4.2", "react-dictate-button": "4.0.1", - "react-film": "4.0.0", + "react-film": "4.0.1-main.202610290630.8324311", "react-say": "2.2.1", "react-scroll-to-bottom": "4.2.1-main.53844f5", "react-wrap-with": "0.1.0", diff --git a/packages/component/package.json b/packages/component/package.json index a1d53c50c0..954f72c526 100644 --- a/packages/component/package.json +++ b/packages/component/package.json @@ -149,6 +149,10 @@ "16.8.6", "using react-dom@16.8.6 to make sure this is the minimum supported version" ], + "react-film": [ + "main", + "4.0.0 imports render() from react-dom, which React 19 removed" + ], "react-scroll-to-bottom": [ "main" ], @@ -207,7 +211,7 @@ "punycode": "2.3.1", "react-chain-of-responsibility": "0.4.2", "react-dictate-button": "4.0.1", - "react-film": "4.0.0", + "react-film": "4.0.1-main.202610290630.8324311", "react-say": "2.2.1", "react-scroll-to-bottom": "4.2.1-main.53844f5", "react-wrap-with": "0.1.0", From 90de0f37db4ff7cf3484e0e4f4cf6ce83831d35a Mon Sep 17 00:00:00 2001 From: Eugene Olonov Date: Thu, 29 Oct 2026 00:26:11 -0700 Subject: [PATCH 2/2] Add the changelog fragment --- .changelog/5980-fix-react-film-react-19.md | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .changelog/5980-fix-react-film-react-19.md diff --git a/.changelog/5980-fix-react-film-react-19.md b/.changelog/5980-fix-react-film-react-19.md new file mode 100644 index 0000000000..30836e7986 --- /dev/null +++ b/.changelog/5980-fix-react-film-react-19.md @@ -0,0 +1,3 @@ +### Changed + +- Bumped to [`react-film@4.0.1-main.202610290630.8324311`](https://npmjs.com/package/react-film/v/4.0.1-main.202610290630.8324311) for webpack 5 with React 19, related to [#5552](https://github.com/microsoft/BotFramework-WebChat/issues/5552), in PR [#5980](https://github.com/microsoft/BotFramework-WebChat/pull/5980), by [@OEvgeny](https://github.com/OEvgeny)