Put in order · Vibe coding with Claude Code course · Module 2: A Next.js project with Claude Code

Ordering: Break it and recover

Arrange the steps of the exercise in which you break the build on purpose and return to the working version:

Items to put in order

  • You type /rewind and choose Restore code
  • npm run build ends with the message Failed to type check
  • You ask Claude to rename the level field to rank
  • You commit the working step
  • npm run build passes again
Show the answer

Correct order:

  1. You commit the working step
  2. You ask Claude to rename the level field to rank
  3. npm run build ends with the message Failed to type check
  4. You type /rewind and choose Restore code
  5. npm run build passes again