Runtime refers to the environment where your code actually executes, and 'runtime errors' are problems that only appear when the code runs — as opposed to errors caught by your editor or compiler beforehand. For vibe coders, runtime errors are the bugs that slip past TypeScript and linting to crash your app in action.
Runtime is when theory meets reality. Your code might look perfect in the editor but only proves itself when it actually runs.
| Compile Time | Runtime |
|---|---|
| Before code runs | While code runs |
| Syntax and type errors | Logic and data errors |
| Caught by editor/compiler | Caught by testing or users |
| Easy to fix | May need debugging |
| Error | What It Means | Common Cause |
|---|---|---|
undefined is not a function | Calling something that doesn't exist | Typo or missing import |
Cannot read property of null | Accessing data that isn't there | Data not loaded yet |
Network error | API call failed | Wrong URL or server down |
Out of memory | Too much data processed | Infinite loop or huge dataset |
AI generates code that's syntactically perfect but sometimes: