Repository navigation
chore: migrate repo to react 18 - #34643
Merged
Martin Hochel (Hotell) merged 57 commits intoJul 2, 2025
Merged
Martin Hochel (Hotell) merged 57 commits into
Martin Hochel (Hotell) merged 57 commits into
Conversation
Martin Hochel (Hotell)
force-pushed
the
desp/migrate-repo-to-react-18
branch
2 times, most recently
from
June 13, 2025 15:04
f9b1af3 to
120a0e4
Compare
📊 Bundle size reportUnchanged fixtures
|
Martin Hochel (Hotell)
force-pushed
the
desp/migrate-repo-to-react-18
branch
2 times, most recently
from
June 17, 2025 08:13
556fd82 to
3a8dbfd
Compare
|
Pull request demo site: URL |
Martin Hochel (Hotell)
force-pushed
the
desp/migrate-repo-to-react-18
branch
4 times, most recently
from
June 24, 2025 16:19
deb4412 to
d0e9efd
Compare
Oleksandr Fediashov (layershifter)
force-pushed
the
desp/migrate-repo-to-react-18
branch
from
June 25, 2025 09:38
26c2dfb to
b88a89f
Compare
Martin Hochel (Hotell)
force-pushed
the
desp/migrate-repo-to-react-18
branch
2 times, most recently
from
June 27, 2025 13:34
a983b8f to
24f4252
Compare
| "mainEntryPointFilePath": "<projectRoot>/../../../../../../dist/out-tsc/types/packages/react-components/<unscopedPackageName>/library/src/index.d.ts" | ||
| "mainEntryPointFilePath": "<projectRoot>/../../../../../../dist/out-tsc/types/packages/react-components/<unscopedPackageName>/library/src/index.d.ts", | ||
| "compiler": { | ||
| "skipLibCheck": true, |
Contributor
Author
There was a problem hiding this comment.
this is now necessary as v0 uses react 17 types which creates type dupes = clashing types
| "types": ["static-assets", "environment"] | ||
| "types": ["static-assets", "environment"], | ||
| "baseUrl": ".", | ||
| "paths": { |
Contributor
Author
There was a problem hiding this comment.
we need pinpoint to use react 18 otherwise tsc will fail on clashing types (v0 has r17, rest of repo r18)
|
|
||
| const { TextEncoder, TextDecoder } = require('node:util'); | ||
| require('@testing-library/jest-dom'); | ||
|
|
Contributor
Author
There was a problem hiding this comment.
after migration to react 18 jest started to fail on missing TextEncoder. this mitigates the issue
Martin Hochel (Hotell)
force-pushed
the
desp/migrate-repo-to-react-18
branch
from
June 30, 2025 08:00
dddb634 to
7d26f90
Compare
Martin Hochel (Hotell)
marked this pull request as ready for review
June 30, 2025 08:00
Martin Hochel (Hotell)
requested review from
a team,
Peter Jahn (Jahnp),
Thomas Michon (ThomasMichon),
David Zearing (dzearing),
Makoto Morimoto (khmakoto) and
Sean Monahan (spmonahan)
as code owners
June 30, 2025 08:00
…age from v0 in v9 (fixing e2e on react-utilities)
…ath mapping to monorepo root, preventing multiple react version clash
…(implicit any within useCallback)
… react 18 upgrade
…itigate breaking changes for R17 users
…including cypress)
… 18 types breaking changes for r17 users
…ion with react-northstar group tag
…X.* to avoid breaking changes
Martin Hochel (Hotell)
force-pushed
the
desp/migrate-repo-to-react-18
branch
2 times, most recently
from
July 2, 2025 14:23
c82d9ac to
f9e53ec
Compare
Martin Hochel (Hotell)
force-pushed
the
desp/migrate-repo-to-react-18
branch
from
July 2, 2025 15:12
f9e53ec to
8cfefec
Compare
This was referenced Nov 20, 2025
Tudor Popa (tudorpopams)
pushed a commit
to tudorpopams/fluentui
that referenced
this pull request
Apr 14, 2026
Co-authored-by: Oleksandr Fediashov <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Previous Behavior
New Behavior
Migrates monorepo to React 18 (including):
Exclusions:
General changes:
diffs in snapshots caused by
idgenerated changesresolving react deps within jest configs as yarn v1 doesn't properly follow no-hoist strategies
workspace-plugin: support skipLibCheck when specified in user land by
generate-apiexecutor / 6c21699scripts-cypress: fixes absolute path bug when resolving
support/files / 6794b89 , c34e15fpublishable libs:
JSX.*type annotations as is - inline lint ignore pragma in place / 061b948#diff-ef443cc924f42402625cfce94e20ec71fe3ee4541c5dafddac9544b72d9193ecReact.JSX.*would cause breaking change to extensions usingskipLibCheck: falseReact.ElementTypeadded 2nd generic in R18 types. If we rely on TS inference during emit, in some cases it will emit `ElementType<any, keyof JSX.IntrinsicElements> which is breaking change for React 17 usersv9
v8
v0
scripts-jesttoscripts-jest-v0to avoid affecting v8 tests by consuming wrongnode_modules/ 0114ef7@types/enzymeto properly use react 17 types / 45634d8charts
Problematic jest test were SKIPED.
I tried to fix as much as I could but I'd like you to finish this on your own Atishay Jain (atisjai) (@AtishayMsft)
.skipadditions to the spec files for further referenceFollow-up
v9
introducing new
JSXElementandJSXIntrinsicElementstypeJSXElementandJSXIntrinsicElementstype withinreact-utilitiesto mitigate@types/reactBreaking Changes (see Notes)JSX.ElementandJSX.IntrinsicElementsglobal types with custom aliases on affected public APIs to generate r17,18,19 compatible type definitions (JSX global namespaces is deprecated in r18 and removed in r19 types)Notes
Breaking change with missing implicit children
In order to be compatible with R17 all public APIs needs to explicitly add
childrenBreaking change with implicit JSX.Element
if react 18/19 types are used, public api returning JSX may/will infer

React.JSX.Elementinstead of previously (react v17)JSX.Element, see image image below (diff):This will not affect users if they have "skipLibCheck: true", which should be standard for applications, but extensions building on fluent v9 core should not use that tsconfig.
Related Issue(s)