TypeScript is finding an error on line 162 in the declaration of getBrowserLang() `error TS2304: Cannot find name 'undefined'. ` Apparently declaring undefined is not permitted on typescript version 1.8.10: https://github.com/Microsoft/TypeScript/pull/5420 EDIT: I'm using ng2-translate@2.4.0 btw.