Troubleshooting module not found issues in the Remix Supabase kit
Troubleshoot issues related to modules not found in the Remix Supabase SaaS kit
Let's walk through common "Module not found" errors and how to fix them in your Makerkit project.
This issue is mostly related to either dependency installed in the wrong package or issues with the file system.
1. Dependency Installation Issues
The most common cause is incorrect dependency installation. Here's how to fix it:
# First, clean your workspacepnpm run clean:workspacespnpm run clean# Reinstall dependenciespnpm install
If you're adding new dependencies, make sure to install them in the correct package:
# For main app dependenciespnpm install my-package --filter web# For a specific packagepnpm install my-package --filter @kit/ui
For example, fi you're using the dependency in the @kit/ui
package, you should install it in the @kit/ui
package:
pnpm add my-package --filter "@kit/ui"
If it's in the main app, you should install it in the main app:
pnpm add my-package --filter web
2. Windows OneDrive Conflicts
OneDrive can cause file system issues with Node.js projects. If you're using Windows with OneDrive:
- Move your project outside of OneDrive-synced folders
- Or disable OneDrive sync for your development folder