Adding the following lines in pnpm-workspace.yaml fixed the issue for me without modifying package.json:
publicHoistPattern:
- "*@rescript/runtime*"
(then delete your node_modules directory and do a pnpm i)
Yet another pnpm’s symlinked node_modules structure issue I guess.