ErrorOracle
javascript

Module not found: Can't resolve '@/components/ui/button'

Error message

Module not found: Can't resolve '@/components/ui/button'

What broke

The application is trying to import a module from a specified path, but it cannot locate the file. This usually happens when the path is incorrect or the file does not exist.

Why it broke

It broke because the module path may be incorrect, the file may have been moved or deleted, or the alias '@' may not be properly configured in the project settings.

How to fix

To fix this, verify that the file exists at the specified path. If the file is present, check your project's configuration for module resolution and ensure that the alias '@' is correctly set up.

Code fix

import Button from './components/ui/button';

Explained by ErrorOracle

Prevention tip

If the file is present, check your project's configuration for module resolution and ensure that the alias '@' is correctly set up.

Was this helpful?

AI-generated explanation. Always verify fixes in your codebase.