openedx / openedx/paragon

`react-hook-form` `v7.66.0` requires typescript 5.x

Open
#4,218 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
140
Forks
100
Avg merge
1h 3m
Merged PRs (30d)
30

Description

We currently have it pinned as

https://github.com/openedx/paragon/blob/5dc0196f8a4ec54b9f7610c6c417e5bb79f7a406/www/package.json#L35

When doing a full lockfile regen in https://github.com/openedx/paragon/pull/4217 I started hitting typescript errors. I traced it down to https://github.com/react-hook-form/react-hook-form/releases/tag/v7.66.0

I'm hesitant to bump the typescript version in Paragon while frontend-build still uses typescript 4.x, so any full regen until then might encounter this issue.

I could have pinned it in the www/package.json, but I'd prefer to have the issue at least reappear on full regens so we remember to deal with it.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the pinned dependency in www/package.json and review the full lockfile regeneration described in pull request 4217. Then inspect how frontend-build uses TypeScript 4.x and reproduce the TypeScript errors caused by react-hook-form v7.66.0. Done means the dependency behavior during full regeneration is documented or adjusted without breaking the existing TypeScript constraint.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
build-system, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.