Repository navigation
build(web): React 19, TypeScript 7 and Node 26 - #20
Merged
Merged
Conversation
Headless UI 2.1.10 only accepts React 18, which broke Dependabot's React 19 update (#11). 2.2.10 accepts both. React 19's types need a ref that can be null and a starting value for useRef.
TypeScript 7 wants a type declaration for the side-effect import of index.css (#15). Vite's client types declare *.css, so they now load with the others in tsconfig.
Node 26 is the active LTS release. @types/node 26 (#14) now matches the Node that CI and Pages run.
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.
Problem
Three Dependabot PRs for the web tool could not be merged as they were:
npm ci: Headless UI 2.1.10 only accepts React 18.src/main.tsx(6,8): error TS2882for the side-effect import of./index.css.@types/node26) passed, but CI and Pages ran Node 24.Approach
One commit per update. Merge with rebase so they stay separate on
main.FirmwarePanel.tsxcan be nulluseRefinSettingsPanel.tsxgets a starting valuevite/clientjoins thetypeslist inweb/tsconfig.json. Vite's client types declare*.css. The typecheck drops to about 0.7 s.ci.ymlandpages.yml, with@types/node26.6.6 to match.Dependabot should close #11, #14 and #15 once
mainhas these versions.Automated validation
make -C firmwarebuilds without warnings: no firmware changemake -C firmware testpasses: no firmware changeDone locally after a clean
npm cion Node 26.13.1:vite buildpassesIn the demo page, under React 19:
Hardware testing
Limitations and follow-up
Node 24 is still supported, but CI no longer tests on it.