Title: ngc --watch ignores changes in templates (ivy) · Issue #31982 · angular/angular · GitHub
Open Graph Title: ngc --watch ignores changes in templates (ivy) · Issue #31982 · angular/angular
X Title: ngc --watch ignores changes in templates (ivy) · Issue #31982 · angular/angular
Description: 🐞 bug report Affected Package The issue is caused by package @angular/compiler-cli Is this a regression? Yes, the previous version in which this bug was not present was: 8.1.2 (But, due to #31322, it only worked on every second change of...
Open Graph Description: 🐞 bug report Affected Package The issue is caused by package @angular/compiler-cli Is this a regression? Yes, the previous version in which this bug was not present was: 8.1.2 (But, due to #31322, ...
X Description: 🐞 bug report Affected Package The issue is caused by package @angular/compiler-cli Is this a regression? Yes, the previous version in which this bug was not present was: 8.1.2 (But, due to #31322, ...
Opengraph URL: https://github.com/angular/angular/issues/31982
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ngc --watch ignores changes in templates (ivy)","articleBody":"# 🐞 bug report\r\n\r\n### Affected Package\r\nThe issue is caused by package @angular/compiler-cli\r\n\r\n\r\n### Is this a regression?\r\n\r\nYes, the previous version in which this bug was not present was: 8.1.2\r\n(But, due to https://github.com/angular/angular/pull/31322, it only worked on every second change of a template.)\r\n\r\n\r\n### Description\r\n\r\n- I run ngc in watch mode. Output directory is out-tsc.\r\n- Ivy is enabled.\r\n- I change a component's template.\r\n- ngc says \"File change detected. Starting incremental compilation.\"\r\n- However, the template change does not result in an according change in the *.js file in out-tsc directory.\r\n- For changes in *.ts files, it works.\r\n\r\n\r\n## 🔬 Minimal Reproduction\r\nExample project is at: https://github.com/stefanocke/angular-cli-app-with-rollup\r\nPlease run:\r\n\r\nnpm i\r\nnpm run ngc-app-watch\r\n\r\nThen, change app.component.html and look for app.component.js in tsc-out.\r\n\r\n## 🌍 Your Environment\r\n\r\n**Angular Version:**\r\n\u003cpre>\u003ccode>\r\nAngular CLI: 8.2.0\r\nNode: 10.16.0\r\nOS: win32 x64\r\nAngular: 8.2.0\r\n... animations, cli, common, compiler, compiler-cli, core, forms\r\n... language-service, platform-browser, router\r\n\r\nPackage Version\r\n-----------------------------------------------------------\r\n@angular-devkit/architect 0.802.0\r\n@angular-devkit/build-angular 0.802.0\r\n@angular-devkit/build-optimizer 0.802.0\r\n@angular-devkit/build-webpack 0.802.0\r\n@angular-devkit/core 8.2.0\r\n@angular-devkit/schematics 8.2.0\r\n@ngtools/webpack 8.2.0\r\n@schematics/angular 8.2.0\r\n@schematics/update 0.802.0\r\nrxjs 6.5.2\r\ntypescript 3.5.3\r\n\r\n\u003c/code>\u003c/pre>\r\n\r\n**Anything else relevant?**\r\nIvy is enabled","author":{"url":"https://github.com/stefanocke","@type":"Person","name":"stefanocke"},"datePublished":"2019-08-03T12:40:47Z","url":"https://github.com/angular/angular/issues/31982"}
| 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:6accc1c1-f8f9-24d5-762f-a5f74e6c085c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CB80:A71F9:1023861:144EEF1:6B014B99 |
| html-safe-nonce | be614d3d622e2eda37380678768c9b24c8677b50f857b353077f7193324e36c1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQjgwOkE3MUY5OjEwMjM4NjE6MTQ0RUVGMTo2QjAxNEI5OSIsInZpc2l0b3JfaWQiOiI0NTc1NTQ1NzA0Mzc3ODMwMjk3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | aa2f3e415ed32830adb5cf4b2e3edbc06632f4895d2091900bdc209038cddd57 |
| hovercard-subject-tag | issue:476448261 |
| 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/31982/issue_layout |
| twitter:image | https://opengraph.githubassets.com/232f3eb7a05c3e50caa15836db648e186825a388cfa04efbad6c538dd98bf158/angular/angular/issues/31982 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/232f3eb7a05c3e50caa15836db648e186825a388cfa04efbad6c538dd98bf158/angular/angular/issues/31982 |
| og:image:alt | 🐞 bug report Affected Package The issue is caused by package @angular/compiler-cli Is this a regression? Yes, the previous version in which this bug was not present was: 8.1.2 (But, due to #31322, ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | stefanocke |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular git https://github.com/angular/angular.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 24195339 |
| octolytics-dimension-repository_nwo | angular/angular |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 24195339 |
| octolytics-dimension-repository_network_root_nwo | angular/angular |
| 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