Module not found
User.service.ts
user.service.ts
UserMapper.ts
import { UserMapper } from './usermapper'
eslint-plugin-import
"rules": { "import/no-unresolved": "error"
}
"rules": { "import/no-unresolved": "error"
}
"rules": { "import/no-unresolved": "error"
}
npx nodejs-quickstart-structure init - Windows (NTFS): Microsoft prioritizes user convenience. To Windows, User.service.ts and user.service.ts are semantically the same. Therefore, NTFS is designed to be Case-Insensitive.
- Linux (Ext4/XFS): The philosophy of Linux (and Unix) is absolute precision. In ASCII, 'U' (65) and 'u' (117) are two completely different entities. Linux treats User.ts and user.ts as two distinct files that can coexist in the same folder. - The Mistake: You name your file UserMapper.ts but write import { UserMapper } from './usermapper'.
- The Local Pass: Windows tells the engine: "Sure, I know what you mean, here is the file."
- The Docker Crash: The Linux environment inside Docker yells: "I don't see any file named usermapper (lowercase) here!"