The issue is that I am using macOS.
On macOS, which uses a case-sensitive file system, the import statement must exactly match the filename:
import App from './App.tsx';
in windows, we can:
import App from './App';
The solution is to explicitly include the file extension in the import statement on macOS.