Skip to content

front, ui: upgrade TypeScript to v6#16225

Open
emersion wants to merge 1 commit intodevfrom
typescript-v6
Open

front, ui: upgrade TypeScript to v6#16225
emersion wants to merge 1 commit intodevfrom
typescript-v6

Conversation

@emersion
Copy link
Copy Markdown
Member

osrd-ui needs a few changes for TypeScript v6 compatibility:

  • baseUrl needs to be dropped because it's now deprecated and causes warnings (and thus CI failures).
  • paths had a bogus unused entry, TypeScript now complains that it's not a relative path.
  • noUncheckedSideEffectImports now defaults to true. This causes failures because we import .css files. A better way to solve this would be to declare module '*.css', but that's cumbersome to apply to all osrd-ui packages. For now, let's just explicitly set this config option to the v5 default.

osrd-ui needs a few changes for TypeScript v6 compatibility:

- `baseUrl` needs to be dropped because it's now deprecated and
  causes warnings (and thus CI failures).
- `paths` had a bogus unused entry, TypeScript now complains that
  it's not a relative path.
- `noUncheckedSideEffectImports` now defaults to true. This causes
  failures because we import .css files. A better way to solve this
  would be to `declare module '*.css'`, but that's cumbersome to
  apply to all osrd-ui packages. For now, let's just explicitly set
  this config option to the v5 default.

Signed-off-by: Simon Ser <contact@emersion.fr>
@emersion emersion requested a review from a team as a code owner April 13, 2026 14:44
@github-actions github-actions bot added area:front Work on Standard OSRD Interface modules area:ui Work on UI labels Apr 13, 2026
@emersion emersion moved this to Awaiting merge in Board PI 19 Apr 13, 2026
@emersion emersion assigned emersion and unassigned emersion Apr 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:front Work on Standard OSRD Interface modules area:ui Work on UI

Projects

Status: Awaiting merge

Development

Successfully merging this pull request may close these issues.

1 participant