VIBE⌇BRATOR
Take the Vibe Check
Error explained

Module not found

Module not found: Can't resolve '…'

Your code imports a package or file that cannot be found at the name the import uses.

What it means

While building, Next.js followed an import in your code and found nothing at that name. The name in quotes is what it looked for, and the error names the file that asked for it. The build stops, so there is nothing to deploy until it is fixed.

Common causes

A prompt to fix it

Paste it into your AI coding tool and fill in the parts in angle brackets. It asks the tool to find the cause and show you before it changes anything.

Paste it, then fill in the <angle brackets>
My build fails with: Module not found: Can't resolve '<the name in quotes>' in '<the file it names>'.

Before changing anything, find out which of these it is and show me the evidence:
1. Is it a package? Check whether it is listed in package.json and present in node_modules.
2. Is it a file? Check that the import path points to a file that exists, folder by folder, and that every capital letter matches the real file name exactly.
3. Is it a Node.js module such as fs or path, imported by code that runs in the browser?

Fix only the cause you found. Do not rename other files or add packages I did not ask for. Then run the build and show me that this error is gone.

How to check it is fixed

Tested prompts that help

Sources

Everything above comes from these pages. We read them on September 27, 2026; if one has changed since, it wins.