If you're building with AI and you hit this:

Error: Cannot find module './utils/formatDate' 

Your code isn't broken. Your AI just lied by omission.

It wrote an import for a helper file it planned to create — then forgot to create it. That's vibe-coding bug #1, and it stops more beginners than almost anything else.

What it actually means

Your app is trying to load a file or package that isn't there. Either the file was never created, the path is slightly off (capital letters count), or it's an npm package that was never installed.

The 2-minute fix

  1. Check if the file in the path actually exists in your project.
  2. If it's a package, run npm install <package-name>.
  3. If the file is missing, don't delete the import — the code needs it. Have your AI create it.

Paste this into your AI:

You imported a module that doesn't exist. Create the missing file with the functions my code expects, or fix the import path to point at the real file. Show me the file tree before you change anything.

That last line matters. Make it show its work before it touches anything else.

This is one of five error patterns we teach in the Debug Clinic at Last20 Academy — plain-English diagnoses for the errors AI-built apps actually hit. The free Prompt Starter Kit covers the prompt side.

What error stopped your last build?