“error TS2694: Namespace 'angular' has no exported member 'xxx'” after upgrading @types/angular
问题 After upgrading angular and @types/angular version to version 1.6.x I have lots of TS2694 errors: error TS2694: Namespace 'angular' has no exported member 'material' error TS2694: Namespace 'angular' has no exported member 'ui' error TS2694: Namespace 'angular' has no exported member 'translate' This worked fine before changing the version number. What could cause the issue? 回答1: The problem was related to several angular type definitions in my node_modules. Angular types were defined in node