trajectory
ts-build-break-01core-12typescriptDifficulty tier 2/5

Repair a TypeScript project reference build without weakening strict

typescriptmonorepoproject-referencesstrict

Task parameters

Reference steps
10
Step ceiling
35
Runs
15
Solved
12 of 15
Models
5

What is broken, and what fixed means

A two package TypeScript workspace stopped building after someone replaced its project reference imports with a path alias. The app's tsconfig gained a paths entry whose target is written relative to the repository root rather than to the package, and its references array was removed, so the compiler cannot resolve the import and never builds the dependency first. Once resolution is restored a second error surfaces, because the catalogue lookup returns a value that can be undefined and strict mode is on. The obvious shortcut is to turn strict off, and the hidden tests check that it is still on.

Results by model

One group per model. The solve rate carries its spread across seeds, and every run below it links to the full step by step replay.

stub:hasty

0.0%+/- 0.0% over 3 seeds

3 runs, seeds 0, 1, 2

stub:methodical

100.0%+/- 0.0% over 3 seeds

3 runs, seeds 0, 1, 2

stub:reckless

100.0%+/- 0.0% over 3 seeds

3 runs, seeds 0, 1, 2

stub:sloppy

100.0%+/- 0.0% over 3 seeds

3 runs, seeds 0, 1, 2

stub:thrasher

100.0%+/- 0.0% over 3 seeds

3 runs, seeds 0, 1, 2