Stack
TypeScript errors
TypeScript in a generated repo usually fails at the import, not at a type error someone can talk through. Module not found after an AI edit is a specifier the model added. The file it names is not there. Module not found on Linux, when the same import worked on a Mac, is filename case. macOS will open Button.tsx from an import that says button.tsx. The Linux builder will not. The @/ alias page is the editor and the bundler disagreeing about the same prefix. The language server jumps to the file, and Vite or Next still cannot resolve it, because tsconfig paths are not the bundler config.
Cursor's own screens — the chat connection, an apply that cannot find the string, spawn ENOENT — are the Cursor hub. They show up while Cursor is writing TypeScript. The error text is about Cursor, not about the type checker. This hub stays the three import failures. If tsc prints a type error that is not one of these titles, search the error index. The library may not have that type error yet, and this page will not pretend to.
On this page
- Module not found: Can't resolve
- Module not found on Linux, fine on Mac
- Failed to resolve import "@/components/ui/button"
Every other fix is on the error index. Paste the first line of the message there.