{"action":"opened","issue":{"url":"https://api.github.com/repos/ivogabe/gulp-typescript/issues/313","repository_url":"https://api.github.com/repos/ivogabe/gulp-typescript","labels_url":"https://api.github.com/repos/ivogabe/gulp-typescript/issues/313/labels{/name}","comments_url":"https://api.github.com/repos/ivogabe/gulp-typescript/issues/313/comments","events_url":"https://api.github.com/repos/ivogabe/gulp-typescript/issues/313/events","html_url":"https://github.com/ivogabe/gulp-typescript/issues/313","id":142823297,"number":313,"title":"Error list is different between tsc and gulp-typescript","user":{"login":"ChrisGrigg","id":3083238,"avatar_url":"https://avatars.githubusercontent.com/u/3083238?v=3","gravatar_id":"","url":"https://api.github.com/users/ChrisGrigg","html_url":"https://github.com/ChrisGrigg","followers_url":"https://api.github.com/users/ChrisGrigg/followers","following_url":"https://api.github.com/users/ChrisGrigg/following{/other_user}","gists_url":"https://api.github.com/users/ChrisGrigg/gists{/gist_id}","starred_url":"https://api.github.com/users/ChrisGrigg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChrisGrigg/subscriptions","organizations_url":"https://api.github.com/users/ChrisGrigg/orgs","repos_url":"https://api.github.com/users/ChrisGrigg/repos","events_url":"https://api.github.com/users/ChrisGrigg/events{/privacy}","received_events_url":"https://api.github.com/users/ChrisGrigg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-23T00:59:50Z","updated_at":"2016-03-23T00:59:50Z","closed_at":null,"body":"**Expected behavior:**\r\n\r\nWhen I run\"tsc\" in my Angular 2 project only relevant errors are listed.\r\n\r\n**Actual behavior:**\r\n\r\nWhen I run \"gulp transpile-ts\" in my Angular 2 project erroneous errors are listed such as:\r\n\r\n- \"error TS2304: Cannot find name 'ol'.\" (there is a d.ts file for openlayers, the only way to get rid of this error is to \"import * as ol from './openlayers'\" and include the /// reference ...)\r\n\r\n- \"error TS2339: Property 'find' does not exist on type Array.\" (I can see the find method exists in the \"lib.es6.d.ts\" file)\r\n\r\n**Your gulpfile:**\r\n\r\nvar tsProject = ts.createProject('tsconfig.json');\r\n\r\ngulp.task('transpile-ts', function() {\r\n    var tsResult = gulp.src(paths.allTypeScript)\r\n        .pipe(sourcemaps.init())\r\n        .pipe(ts(tsProject));\r\n\r\n    return tsResult.js\r\n        .pipe(sourcemaps.write('.'))\r\n        .pipe(gulp.dest(paths.dest_js));\r\n});\r\n\r\n**tsconfig.json**\r\n\r\n{\r\n  \"compilerOptions\": {\r\n    \"target\": \"es5\",\r\n    \"module\": \"commonjs\",\r\n    \"moduleResolution\": \"node\",\r\n    \"sourceMap\": true,\r\n    \"emitDecoratorMetadata\": true,\r\n    \"experimentalDecorators\": true,\r\n    \"removeComments\": false,\r\n    \"noImplicitAny\": false\r\n  },\r\n  \"exclude\": [\r\n    \"node_modules\",\r\n    \"typings/browser\",\r\n    \"typings/browser.d.ts\"\r\n  ]\r\n}\r\n\r\nThanks so much\r\n"}}