Skip to content

Conversation

@thgaskell
Copy link
Contributor

Summary

  • Update react peer dependency to ^19.2.1 in @nmfs-radfish/react-radfish
  • Add focus-trap-react@^10.2.3 as direct dependency (required by @trussworks/react-uswds)
  • Update @trussworks/react-uswds to ^10.2.0
  • Update all templates and examples to use React 19
  • Add verify-build.sh script for local package verification

Context

This PR unblocks future work to resolve ci integrations, which will add test and build steps to the PR workflow. The build step currently fails on main due to a missing focus-trap-react transitive dependency from @trussworks/react-uswds.

Test plan

  • npm test --workspaces -- --run passes (69 tests)
  • npm run build --workspaces --if-present succeeds
  • Template builds with local file: package references (scripts/verify-build.sh)
  • Dev server starts successfully on localhost:3000

- Update peerDependencies react to ^19.2.1
- Add focus-trap-react dependency required by @trussworks/react-uswds
- Add explicit name field to root package.json
Script runs workspace tests, builds packages, then verifies the
template works with local file: references. Requires clean git
state and discards all changes on exit.
@thgaskell thgaskell requested a review from jaygiang February 4, 2026 21:28
- Update @tanstack/react-table from ^8.16.0 to ^8.21.0 to avoid
  nested React 18 dependency resolution
- Change react peerDependency from "^18.2.0 || ^19.2.1" to "^19.2.1"
  to prevent duplicate React versions causing runtime errors
@jaygiang
Copy link
Collaborator

jaygiang commented Feb 9, 2026

I'm running into this error on react-javascript after npm install then npm run start. It happens on build as well.

Screenshot 2026-02-09 at 1 18 07 PM
@nmfs-radfish_react-…h.js?v=3f7bd95e:207 Uncaught TypeError: Cannot read properties of undefined (reading 'ReactCurrentDispatcher')
    at @nmfs-radfish_react-…s?v=3f7bd95e:207:15
    at Y1 (@nmfs-radfish_react-…js?v=3f7bd95e:645:4)
    at @nmfs-radfish_react-…s?v=3f7bd95e:647:42

Copy link
Collaborator

@jaygiang jaygiang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM ✅

@thgaskell thgaskell merged commit baaab14 into main Feb 12, 2026
3 checks passed
@thgaskell thgaskell deleted the chore/update-react-19 branch February 12, 2026 21:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants