ai newsMi., 25. Nov.
EilmeldungYale’s Sonnenfeld: Nvidia is a ‘detriment’ to U.S. industrial might — not a champion

Module not found? Your AI invented a file that doesn't exist

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

dev.toMontag 18:17 · 23.11.1 Min. Lesezeit
Bild: dev.to

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

Error: Cannot find module './utils/formatDate' Enter fullscreen mode Exit fullscreen mode 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.

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.

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.

Quelle: dev.to (dev.to). Original öffnen