Title: @ngtools/webpack not working with HMR after 8.0.0 and IVY enabled · Issue #15225 · angular/angular-cli · GitHub
Open Graph Title: @ngtools/webpack not working with HMR after 8.0.0 and IVY enabled · Issue #15225 · angular/angular-cli
X Title: @ngtools/webpack not working with HMR after 8.0.0 and IVY enabled · Issue #15225 · angular/angular-cli
Description: 🐞 Bug report Command (mark with an x) - [ ] new - [ ] build - [ ] serve - [ ] test - [ ] e2e - [ ] generate - [ ] add - [ ] update - [ ] lint - [ ] xi18n - [ ] run - [ ] config - [ ] help - [ ] version - [ ] doc not using angular cli, bu...
Open Graph Description: 🐞 Bug report Command (mark with an x) - [ ] new - [ ] build - [ ] serve - [ ] test - [ ] e2e - [ ] generate - [ ] add - [ ] update - [ ] lint - [ ] xi18n - [ ] run - [ ] config - [ ] help - [ ] ver...
X Description: 🐞 Bug report Command (mark with an x) - [ ] new - [ ] build - [ ] serve - [ ] test - [ ] e2e - [ ] generate - [ ] add - [ ] update - [ ] lint - [ ] xi18n - [ ] run - [ ] config - [ ] help - [ ] ver...
Opengraph URL: https://github.com/angular/angular-cli/issues/15225
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"@ngtools/webpack not working with HMR after 8.0.0 and IVY enabled","articleBody":"# 🐞 Bug report\r\n\r\n### Command (mark with an `x`)\r\n\u003c!-- Can you pin-point the command or commands that are effected by this bug? -->\r\n\u003c!-- ✍️edit: -->\r\n```\r\n- [ ] new\r\n- [ ] 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\nnot using angular cli, but @ngtools/webpack\r\n\r\n### Is this a regression?\r\n\r\nYes in version 8.0.1 was working, 8.1.0 or higher is not working.\r\n\r\n### Description\r\n\r\nWhen you change anythying in your template and HMR reloads script you will receive error that any directive or component that is used in that template is not known. When you stop HMR and rebuild application and run it again everything is working fine until you change something. I have another project and i cant move from 8.0.1 because this is only working version with Angular IVY, @ngtools/webpack and HMR.\r\n\r\n\r\n## 🔬 Minimal Reproduction\r\n\r\ndownload this https://github.com/kukjevov/ngtools-error\r\n\r\n> `git clone https://github.com/kukjevov/ngtools-error`\r\n> `cd ngtools-error`\r\n> `npm install`\r\n> `npm start`\r\n> open in browser `http://localhost:8888\r\n> add `\u003cdiv>super\u003c/div>` into either `app.component.html` or `navigation.component.html`\r\n> look for error in browser console\r\n\r\n## 🔥 Exception or Error\r\n\r\nif you change `app.component.html` you will get\r\n\r\n\u003cpre>\u003ccode>\r\nError: \"Export of name 'outlet' not found!\"\r\n\u003c/code>\u003c/pre>\r\n\r\nif you change `navigation.component.html` you will get\r\n\r\n\u003cpre>\u003ccode>\r\nError: \"Template error: Can't bind to 'routerLinkActiveOptions' since it isn't a known property of 'div'.\"\r\n\u003c/code>\u003c/pre>\r\n\r\n\r\n## 🌍 Your Environment\r\n\r\n- angular and ngtools: 8.2.0\r\n- node: 10.16.0\r\n- npm: 6.9.0","author":{"url":"https://github.com/kukjevov","@type":"Person","name":"kukjevov"},"datePublished":"2019-08-01T18:14:34Z","url":"https://github.com/angular/angular-cli/issues/15225"}
| 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:1f069dcc-15f3-b4ce-1a8a-123d0feb4dd0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D906:928E2:173F5E4:1F08494:6B0142ED |
| html-safe-nonce | 3822ce8d908f01a77f4744d5d68d5a73e85ae4059c5b2fe683733790ed425f60 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOTA2OjkyOEUyOjE3M0Y1RTQ6MUYwODQ5NDo2QjAxNDJFRCIsInZpc2l0b3JfaWQiOiI1MjYwMzc5MjA2MDkyNjY5Njc3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 40cc6a1cac8e111a3941a4cb0e288f656864ea5df3817d4792e1c7fa754b5b43 |
| hovercard-subject-tag | issue:475820900 |
| 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/15225/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8fde44285db1d2d855ae918044850865d555dddf043a17db9f41919ce3189564/angular/angular-cli/issues/15225 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8fde44285db1d2d855ae918044850865d555dddf043a17db9f41919ce3189564/angular/angular-cli/issues/15225 |
| og:image:alt | 🐞 Bug report Command (mark with an x) - [ ] new - [ ] build - [ ] serve - [ ] test - [ ] e2e - [ ] generate - [ ] add - [ ] update - [ ] lint - [ ] xi18n - [ ] run - [ ] config - [ ] help - [ ] ver... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kukjevov |
| 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