Title: Inconsistent results from "ng build --watch" · Issue #12311 · angular/angular-cli · GitHub
Open Graph Title: Inconsistent results from "ng build --watch" · Issue #12311 · angular/angular-cli
X Title: Inconsistent results from "ng build --watch" · Issue #12311 · angular/angular-cli
Description: Bug Report or Feature Request (mark with an x) - [x] bug report -> please search issues before submitting - [ ] feature request Command (mark with an x) - [ ] new - [x] build - [ ] serve - [ ] test - [ ] e2e - [ ] generate - [ ] add - [ ...
Open Graph Description: Bug Report or Feature Request (mark with an x) - [x] bug report -> please search issues before submitting - [ ] feature request Command (mark with an x) - [ ] new - [x] build - [ ] serve - [ ] test...
X Description: Bug Report or Feature Request (mark with an x) - [x] bug report -> please search issues before submitting - [ ] feature request Command (mark with an x) - [ ] new - [x] build - [ ] serve - [ ] t...
Opengraph URL: https://github.com/angular/angular-cli/issues/12311
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Inconsistent results from \"ng build --watch\"","articleBody":"\u003c!--\r\nIF YOU DON'T FILL OUT THE FOLLOWING INFORMATION YOUR ISSUE MIGHT BE CLOSED WITHOUT INVESTIGATING\r\n-->\r\n### Bug Report or Feature Request (mark with an `x`)\r\n```\r\n- [x] bug report -> please search issues before submitting\r\n- [ ] feature request\r\n```\r\n\r\n### Command (mark with an `x`)\r\n```\r\n- [ ] new\r\n- [x] build\r\n- [ ] serve\r\n- [ ] test\r\n- [ ] e2e\r\n- [ ] generate\r\n- [ ] add\r\n- [ ] update\r\n- [ ] lint\r\n- [ ] xi18n\r\n- [ ] run\r\n- [ ] config\r\n- [ ] help\r\n- [ ] version\r\n- [ ] doc\r\n```\r\n\r\n### Versions\r\n\u003c!--\r\nOutput from: `node --version`, `npm --version` and `ng --version`.\r\n Windows (7/8/10). Linux (incl. distribution). macOS (El Capitan? Sierra? High Sierra?)\r\n-->\r\n\r\n```\r\n~/Development/test-fromdev/angularcli622 (master)\r\n$ node --version\r\nv10.10.0\r\n\r\n~/Development/test-fromdev/angularcli622 (master)\r\n$ npm --version\r\n6.4.1\r\n\r\n~/Development/test-fromdev/angularcli622 (master)\r\n$ ng --version\r\n\r\n _ _ ____ _ ___\r\n / \\ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _|\r\n / △ \\ | '_ \\ / _` | | | | |/ _` | '__| | | | | | |\r\n / ___ \\| | | | (_| | |_| | | (_| | | | |___| |___ | |\r\n /_/ \\_\\_| |_|\\__, |\\__,_|_|\\__,_|_| \\____|_____|___|\r\n |___/\r\n\r\n\r\nAngular CLI: 6.2.2\r\nNode: 10.10.0\r\nOS: darwin x64\r\nAngular: 6.1.7\r\n... animations, common, compiler, compiler-cli, core, forms\r\n... http, language-service, platform-browser\r\n... platform-browser-dynamic, router\r\n\r\nPackage Version\r\n-----------------------------------------------------------\r\n@angular-devkit/architect 0.8.2\r\n@angular-devkit/build-angular 0.8.2\r\n@angular-devkit/build-optimizer 0.8.2\r\n@angular-devkit/build-webpack 0.8.2\r\n@angular-devkit/core 0.8.2\r\n@angular-devkit/schematics 0.8.2\r\n@angular/cli 6.2.2\r\n@ngtools/webpack 6.2.2\r\n@schematics/angular 0.8.2\r\n@schematics/update 0.8.2\r\nrxjs 6.2.2\r\ntypescript 2.9.2\r\nwebpack 4.19.1\r\n```\r\n\r\n### Repro steps\r\n\u003c!--\r\nSimple steps to reproduce this bug.\r\nPlease include: commands run (incl args), packages added, related code changes.\r\nA link to a sample repo would help too.\r\n-->\r\nIn short:\r\n1. `ng new`\r\n2. Modify `export class AppComponent` in `app.component.ts` and make the name have an error\r\n2. `ng build --watch`\r\n3. Results do not include complete errors\r\n4. Modify a file and save it\r\n5. Results get different results\r\n\r\n\u003cimg width=\"719\" alt=\"screen shot 2018-09-19 at 10 03 06 am\" src=\"https://user-images.githubusercontent.com/6605430/45767037-cbcb8480-bbfe-11e8-97cd-f454cacf133e.png\">\r\n\r\n### The log given by the failure\r\n\u003c!-- Normally this include a stack trace and some more information. -->\r\n```\r\nDate: 2018-09-19T16:23:50.988Z\r\nHash: c698bdcfe9b051ff11cf\r\nTime: 3469ms\r\nchunk {main} main.js, main.js.map (main) 640 bytes [initial] [rendered]\r\nchunk {polyfills} polyfills.js, polyfills.js.map (polyfills) 695 bytes [initial] [rendered]\r\nchunk {runtime} runtime.js, runtime.js.map (runtime) 6.22 kB [entry] [rendered]\r\nchunk {styles} styles.js, styles.js.map (styles) 15.6 kB [initial] [rendered]\r\n\r\nERROR in AppComponent cannot be used as an entry component.\r\n```\r\n\r\n### Desired functionality\r\n\u003c!--\r\nWhat would like to see implemented?\r\nWhat is the usecase?\r\n-->\r\nCorrectly report details on the file with errors. We were tying in Angular CLI build with VS Code tasks support to get 'authoritative' project-level validation and ideally need consistent reporting of errors (and bonus would be \"begin compile\" / \"end compile\" designators).\r\n\r\n### Mention any other details that might be useful\r\n\u003c!-- Please include a link to the repo if this is related to an OSS project. -->","author":{"url":"https://github.com/TimWebb","@type":"Person","name":"TimWebb"},"datePublished":"2018-09-19T16:26:28Z","url":"https://github.com/angular/angular-cli/issues/12311"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:2ee92bfc-e7e0-28e9-b3af-f3a8ec027992 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9AB4:14F601:166A530:1C8DCB4:6B012020 |
| html-safe-nonce | 98738ae4eaf3c32fd5234f4466f032720d24437faed20187260518b36f56be68 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QUI0OjE0RjYwMToxNjZBNTMwOjFDOERDQjQ6NkIwMTIwMjAiLCJ2aXNpdG9yX2lkIjoiMTE3NDM0NDY0ODY1NTcwODE5MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 6fc86828d3b3a090eff630c97b7e01360a1e3b8413e2a0802e9c19954aab3819 |
| hovercard-subject-tag | issue:361828244 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular-cli/12311/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4f5c58ff60d5bb2adae6b298f92a712921207136e1dde2cc3ff367729f723b28/angular/angular-cli/issues/12311 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4f5c58ff60d5bb2adae6b298f92a712921207136e1dde2cc3ff367729f723b28/angular/angular-cli/issues/12311 |
| og:image:alt | Bug Report or Feature Request (mark with an x) - [x] bug report -> please search issues before submitting - [ ] feature request Command (mark with an x) - [ ] new - [x] build - [ ] serve - [ ] test... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | TimWebb |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular-cli git https://github.com/angular/angular-cli.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 36891867 |
| octolytics-dimension-repository_nwo | angular/angular-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 36891867 |
| octolytics-dimension-repository_network_root_nwo | angular/angular-cli |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width