In my Angular 11 application, ng serve
and ng build
don't report any error. But with npm run ng build -- --prod --output-hashing=all
, which happens on the build server, I suddenly see an error:
Error: src/app/administration/clients/licensing-client.ts:7:15 - error TS6133: 'tap' is declared but its value is never read.
7 import { map, tap } from 'rxjs/operators';
~~~
My question is, why is this error not reported already when I do ng serve
? Are those different configurations somehow?