#29 most commonbuildLovableBolt.newCursorWindsurfv0
The requested module does not provide an export named '...'
Uncaught SyntaxError: The requested module '/src/lib/api.ts' does not provide an export named 'fetchUsers' / Module '"x"' has no exported member 'Y'.
Got a slightly different error? Paste the exact message and get a fix prompt tailored to it.
Paste your error →What it means
Your code asks a file for something by name, but that file doesn't offer anything with that name. Often the AI renamed a function or invented one that a package doesn't actually have.
How to fix it: paste this prompt into your AI builder
Fix prompt for Lovable, Bolt, Cursor, v0, Windsurf
I get "does not provide an export named X" / "has no exported member". Open the module mentioned and list what it actually exports. Then either fix the import to use the correct name and default/named style, or, if the function genuinely doesn't exist (e.g. an invented API from a library), replace it with the library's real documented API for the installed version. Do not add fake stubs and don't change unrelated code.
If the AI can't fix it: manual steps
- Check the installed version of the package in package.json; the AI may be using an API from a different version.
Where this happens
Seen in these AI app builders and editors:
LovableBolt.newCursorWindsurfv0
Sources
Related build errors
Still stuck? Paste your full error and UnstuckMyVibe will match it and hand you the exact fix prompt.
Fix my error →