-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
Closed
Labels
Description
Reproduction
Can be reproduced in following repo:
https://stackblitz.com/edit/react-router-tsc-hangs
The project is a simple library with one function:
import type { Fetcher } from 'react-router'
export const bar = (fetcher: Fetcher) => fetcher.state === 'loading'
- Open project
- Run the following command
npm i && npm run build
tsc process will continue to work indefinitely while actively consuming memory
So far I've reproduced it in Stackblitz environment, in MacOS environment and in node:20-alpine container
System Info
System:
OS: Linux 6.8 Alpine Linux
CPU: (5) arm64 unknown
Memory: 7.19 GB / 7.73 GB
Container: Yes
Shell: Unknown - /bin/sh
Binaries:
Node: 20.20.0 - /usr/local/bin/node
Yarn: 1.22.22 - /usr/local/bin/yarn
npm: 10.8.2 - /usr/local/bin/npm
npmPackages:
react-router: 7.13.0 => 7.13.0
typescript: 5.9.3 => 5.9.3Used Package Manager
npm
Expected Behavior
Simple library successfully built
Actual Behavior
Build process never finishes
Reactions are currently unavailable