If you see this error while SWITCHING to ESBUILD, you probably have a @angular path in your tsconfig.
REMOVE this option now, and it will fix the issue.
"paths": { "@angular/*": ["./node_modules/@angular/*"], <--- DELETE THIS ... }