Missing file or package · Usually quick to fix
Module not found: Can't resolve
Your code is trying to import something that doesn’t exist at that path, or a package that isn’t installed.
What the error looks like
Module not found: Can't resolve '@/components/Button'
Why it happens
Either a file was moved/renamed, the import path has a typo, or you forgot to install a package with npm install.
How to fix it
- Check the import path for typos
- Make sure the file exists at the path shown in the error
- If it’s a package, run: npm install <package-name>
Ask your AI coding tool to fix it
Paste this prompt into Claude Code, Cursor, Bolt or Lovable, with your own error in place of the example.
I'm getting this error and I need help understanding and fixing it:
```
Module not found: Can't resolve '@/components/Button'
```
Please:
1. Explain what this error means in plain English
2. Tell me the most likely cause
3. Give me the exact code changes or commands I need to fix it
4. Show me how to prevent this error in the future
Got a different error?
Paste any error into the free Error Decoder and get it explained in plain English, with a fix prompt.
Decode my error