In plain words
Each file in your project is a module that can export code, and other files import it by name instead of copying it.
Where you see it
The first few lines of almost every file. import { createClient } from "@supabase/supabase-js" pulls in an installed package, while import NoteCard from "./NoteCard" pulls in a file from the same folder.
What goes wrong
- Importing a package that was never installed
The agent writes the import but never adds the package, and the preview fails with "Failed to resolve import" or "Cannot find module".
- Curly braces in the wrong place
import Button from and import { Button } from ask for different things. A default export takes no braces; a named export needs them.
- Old paths after a file moves
The agent moves a component into a new folder and misses an import that still points at the old path. The build breaks on a page you didn't touch.
What to tell your agent
Quick check
Sign in to earn +10 XP for itAfter the agent adds a date picker, the preview shows "Failed to resolve import 'react-day-picker'". What went wrong?