When running my angular application after compiling it with --prod, I often get some XXX is not a function
errors.
They are usually caused by some missing augmentations on Observable (I am using RxJS 5). They are fixed by adding the correct import 'rxjs/add/operator/XXXX';
in the correct file, after finding this 'correct file' which can be long. And then are I have to rebuild the application, re-test and fix the next similar error.
(see Angular HTTP GET with TypeScript error http.get(...).map is not a function in [null] for similar problems)
My question : is there a way to detect all the missing augmentation imports ?
Eventually using Webstorm, angular-cli, a good combination of find/grep/awk or any other tool.