Classic two-definitions loop. Almost certainly you have Recipe defined twice (say types/recipe.ts and inline in lib/data.ts). Each fix edits one of them, the next feature imports the other one, and the error "comes back".
Break the loop instead of asking for fix #5:
- Stop the agent. Search yourself:
grep -rn "Recipe\b" --include=*.ts* src app lib. - Pick one definition, delete the other, point every import to the survivor.
- Then tell Cursor exactly that as a rule: "The only Recipe type is in
types/recipe.ts. Never declare it anywhere else."
General rule for loops: if the same fix happened twice, the model is missing a fact. Asking harder doesn't add the fact; finding it does.
type Recipeandinterface Recipe? I have a feeling there's more than one. sofia_gr · edited