{"action":"created","issue":{"url":"https://api.github.com/repos/mgechev/angular2-seed/issues/1145","repository_url":"https://api.github.com/repos/mgechev/angular2-seed","labels_url":"https://api.github.com/repos/mgechev/angular2-seed/issues/1145/labels{/name}","comments_url":"https://api.github.com/repos/mgechev/angular2-seed/issues/1145/comments","events_url":"https://api.github.com/repos/mgechev/angular2-seed/issues/1145/events","html_url":"https://github.com/mgechev/angular2-seed/issues/1145","id":166799608,"number":1145,"title":"When watch is triggered build.js.dev displays lots of errors.","user":{"login":"Sjiep","id":5003111,"avatar_url":"https://avatars.githubusercontent.com/u/5003111?v=3","gravatar_id":"","url":"https://api.github.com/users/Sjiep","html_url":"https://github.com/Sjiep","followers_url":"https://api.github.com/users/Sjiep/followers","following_url":"https://api.github.com/users/Sjiep/following{/other_user}","gists_url":"https://api.github.com/users/Sjiep/gists{/gist_id}","starred_url":"https://api.github.com/users/Sjiep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sjiep/subscriptions","organizations_url":"https://api.github.com/users/Sjiep/orgs","repos_url":"https://api.github.com/users/Sjiep/repos","events_url":"https://api.github.com/users/Sjiep/events{/privacy}","received_events_url":"https://api.github.com/users/Sjiep/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-21T11:44:33Z","updated_at":"2016-07-21T14:53:50Z","closed_at":null,"body":"Since I merged the pull request of #1099 I get the following type error messages from the `build.js.dev` task, when I have `npm start` running and make a change in the code which triggers the `watch` to re-execute the given tasks.\r\n\r\n```\r\nCould not find input file ....\\src\\client\\src\\client\\app\\+home\\home.component.ts. This is probably an issue of gulp-typescript.\r\nPlease report it at https://github.com/ivogabe/gulp-typescript/issues\r\nDebug information: \r\nsourceRoot = \"..../src/client/\"\r\nsources = [\"src\\\\client\\\\app\\\\+home\\\\home.component.ts\"]\r\n```\r\n\r\n(This errors shows up for basically every TS file it compiles.)\r\n\r\nAfter a bit of debugging I found out this is happening because the projectFiles are not cached any more on the typed builds, see [build.js.dev.ts#L30](https://github.com/mgechev/angular2-seed/blob/master/tools/tasks/seed/build.js.dev.ts#L30).\r\n\r\nFor now I have added the line `projectFiles = projectFiles.pipe(plugins.cached());` to my typed builds as well such that the errors don't show up any more.\r\n\r\nIn my debugging I found out that on the first run of the `npm start` tasks there is no `sourceRoot` specified in the `tsProject` variable. However on every new 'watch execution' the `tsProject` contains a `sourceRoot = APP_CLIENT` entry, I believe this should actually be `APP_BASE` instead. \r\n\r\n@brian428 any idea why this is happening? Can you replicate this behaviour?"},"comment":{"url":"https://api.github.com/repos/mgechev/angular2-seed/issues/comments/234279034","html_url":"https://github.com/mgechev/angular2-seed/issues/1145#issuecomment-234279034","issue_url":"https://api.github.com/repos/mgechev/angular2-seed/issues/1145","id":234279034,"user":{"login":"brian428","id":140338,"avatar_url":"https://avatars.githubusercontent.com/u/140338?v=3","gravatar_id":"","url":"https://api.github.com/users/brian428","html_url":"https://github.com/brian428","followers_url":"https://api.github.com/users/brian428/followers","following_url":"https://api.github.com/users/brian428/following{/other_user}","gists_url":"https://api.github.com/users/brian428/gists{/gist_id}","starred_url":"https://api.github.com/users/brian428/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brian428/subscriptions","organizations_url":"https://api.github.com/users/brian428/orgs","repos_url":"https://api.github.com/users/brian428/repos","events_url":"https://api.github.com/users/brian428/events{/privacy}","received_events_url":"https://api.github.com/users/brian428/received_events","type":"User","site_admin":false},"created_at":"2016-07-21T14:53:50Z","updated_at":"2016-07-21T14:53:50Z","body":"Also not sure what you mean about `APP_CLIENT` or `APP_BASE` in this context. There's nothing in [tsproject.ts](https://github.com/mgechev/angular2-seed/blob/master/tools/utils/seed/tsproject.ts) or [build.js.dev.ts](https://github.com/mgechev/angular2-seed/blob/master/tools/tasks/seed/build.js.dev.ts) that uses either of those values."}}
{"actor":{"display_login":"brian428"}}