Title: Angular 10, HMR not working (blank page) · Issue #2243 · NativeScript/nativescript-angular · GitHub
Open Graph Title: Angular 10, HMR not working (blank page) · Issue #2243 · NativeScript/nativescript-angular
X Title: Angular 10, HMR not working (blank page) · Issue #2243 · NativeScript/nativescript-angular
Description: Environment tns info: √ Component nativescript has 7.0.6 version and is up to date. √ Component @nativescript/core has 7.0.0 version and is up to date. × Component @nativescript/ios is not installed. √ Component @nativescript/android has...
Open Graph Description: Environment tns info: √ Component nativescript has 7.0.6 version and is up to date. √ Component @nativescript/core has 7.0.0 version and is up to date. × Component @nativescript/ios is not installe...
X Description: Environment tns info: √ Component nativescript has 7.0.6 version and is up to date. √ Component @nativescript/core has 7.0.0 version and is up to date. × Component @nativescript/ios is not installe...
Mail addresses
oss@nativescript.org
Opengraph URL: https://github.com/NativeScript/nativescript-angular/issues/2243
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Angular 10, HMR not working (blank page)","articleBody":"**Environment**\r\ntns info:\r\n√ Component nativescript has 7.0.6 version and is up to date.\r\n√ Component @nativescript/core has 7.0.0 version and is up to date.\r\n× Component @nativescript/ios is not installed.\r\n√ Component @nativescript/android has 7.0.0 version and is up to date.\r\n\r\n**package.json**\r\n{\r\n \"name\": \"@nativescript/template-hello-world-ng\",\r\n \"main\": \"main.js\",\r\n \"version\": \"7.0.2\",\r\n \"author\": \"NativeScript Team \u003coss@nativescript.org\u003e\",\r\n \"description\": \"NativeScript Application\",\r\n \"license\": \"SEE LICENSE IN \u003cyour-license-filename\u003e\",\r\n \"publishConfig\": {\r\n \"access\": \"public\"\r\n },\r\n \"keywords\": [\r\n \"nativescript\",\r\n \"mobile\",\r\n \"angular\",\r\n \"{N}\",\r\n \"template\"\r\n ],\r\n \"repository\": \"\u003cfill-your-repository-here\u003e\",\r\n \"bugs\": {\r\n \"url\": \"https://github.com/NativeScript/NativeScript/issues\"\r\n },\r\n \"scripts\": {\r\n \"ngcc\": \"ngcc --properties es2015 module main --first-only\",\r\n \"postinstall\": \"npm run ngcc\"\r\n },\r\n \"dependencies\": {\r\n \"@angular/animations\": \"~10.1.0\",\r\n \"@angular/common\": \"~10.1.0\",\r\n \"@angular/compiler\": \"~10.1.0\",\r\n \"@angular/core\": \"~10.1.0\",\r\n \"@angular/forms\": \"~10.1.0\",\r\n \"@angular/platform-browser\": \"~10.1.0\",\r\n \"@angular/platform-browser-dynamic\": \"~10.1.0\",\r\n \"@angular/router\": \"~10.1.0\",\r\n \"@nativescript/angular\": \"~10.1.0\",\r\n \"@nativescript/core\": \"~7.0.0\",\r\n \"@nativescript/theme\": \"~2.3.0\",\r\n \"reflect-metadata\": \"~0.1.12\",\r\n \"rxjs\": \"^6.6.0\",\r\n \"zone.js\": \"~0.11.1\"\r\n },\r\n \"devDependencies\": {\r\n \"@angular/compiler-cli\": \"~10.1.0\",\r\n \"@nativescript/android\": \"7.0.0\",\r\n \"@nativescript/types\": \"~7.0.0\",\r\n \"@nativescript/webpack\": \"~3.0.0\",\r\n \"@ngtools/webpack\": \"~10.1.0\",\r\n \"typescript\": \"~3.9.0\"\r\n },\r\n \"private\": \"true\",\r\n \"readme\": \"NativeScript Application\"\r\n}\r\n\r\n\r\n**Describe the bug**\r\nHMR not working on Android (IOS not tested). No error reported, but application screen is blanked.\r\n\r\n**To Reproduce**\r\ncreate a sample application with **angular** and **Hello world** template :\r\n`nsc create sampleapp`\r\n\r\nbuild and launch application:\r\n`tns debug android --watch`\r\n\r\nThe application is built and displayed on device (emulator)\r\nNow modify file [src\\app\\item\\items.component.html] changing, for example, the ActionBar title\r\nThe change is detected, but when hot updates are applied the app screen is blanked.\r\n\r\nThis is the output (no errors):\r\nFile change detected. Starting incremental webpack compilation...\r\nHash: bd62e71f13914cafaf7a\r\nVersion: webpack 4.44.1\r\nTime: 496ms\r\nBuilt at: 2020-09-08 14:24:47\r\n Asset Size Chunks Chunk Names\r\n 792ff4769056012fc631.hot-update.json 48 bytes [emitted] [immutable] [hmr]\r\nbundle.792ff4769056012fc631.hot-update.js 7.24 KiB bundle [emitted] [immutable] [hmr] bundle\r\n bundle.js 44.8 KiB bundle [emitted] bundle\r\n runtime.js 77.1 KiB runtime [emitted] runtime\r\n + 1 hidden asset\r\nEntrypoint bundle = runtime.js vendor.js bundle.js bundle.792ff4769056012fc631.hot-update.js\r\n[../$$_lazy_route_resource lazy recursive] ../$$_lazy_route_resource lazy namespace object 160 bytes {bundle} [built]\r\n[./app/item/items.component.ts] 1.92 KiB {bundle} [built]\r\n + 555 hidden modules\r\nWebpack compilation complete. Watching for file changes.\r\nWebpack build done!\r\nSuccessfully transferred bundle.792ff4769056012fc631.hot-update.js on device emulator-5554.\r\nSuccessfully transferred 792ff4769056012fc631.hot-update.json on device emulator-5554.\r\nJS: HMR: Checking for updates to the bundle with hmr hash 792ff4769056012fc631.\r\nJS: HMR: The following modules were updated:\r\nJS: HMR: ↻ ./app/item/items.component.ts\r\nJS: HMR: ↻ ./app/app-routing.module.ts\r\nJS: HMR: ↻ ./app/app.module.ts\r\nJS: HMR: Successfully applied update with hmr hash 792ff4769056012fc631. App is up to date.\r\nRefreshing application on device emulator-5554...\r\nJS: Angular is running in development mode. Call enableProdMode() to enable production mode.\r\ndevice: emulator-5554 debug port: 40000\r\n\r\nTo start debugging, open the following URL in Chrome:\r\ndevtools://devtools/bundled/inspector.html?ws=localhost:40000\r\n\r\nSuccessfully synced application org.nativescript.sampleapp on device emulator-5554.\r\n\r\n**Expected behavior**\r\nHMR working as in previous release\r\n\r\n","author":{"url":"https://github.com/ptomasini","@type":"Person","name":"ptomasini"},"datePublished":"2020-09-08T12:50:29.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":18},"url":"https://github.com/2243/nativescript-angular/issues/2243"}
| 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:858b0855-a980-b265-e2af-0f21049b2a20 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C120:3D95EB:3F96D0:53D2D8:696B3F28 |
| html-safe-nonce | 3ef7bcf30126bdf2f2afb61e5310d5131532ed193ca4682c214c547b60f21b56 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMTIwOjNEOTVFQjozRjk2RDA6NTNEMkQ4OjY5NkIzRjI4IiwidmlzaXRvcl9pZCI6Ijc1MzkxMjgyNzczODEzNjU1NDQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 6f79a628b1cd21c32200011ac0f4c9576a9e8dd132870dfa5408342a6a96642d |
| hovercard-subject-tag | issue:695842459 |
| 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/NativeScript/nativescript-angular/2243/issue_layout |
| twitter:image | https://opengraph.githubassets.com/189b717120c667fa524b26d1769347ac3b383f871acfd9cb00b441afe7cfe3b5/NativeScript/nativescript-angular/issues/2243 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/189b717120c667fa524b26d1769347ac3b383f871acfd9cb00b441afe7cfe3b5/NativeScript/nativescript-angular/issues/2243 |
| og:image:alt | Environment tns info: √ Component nativescript has 7.0.6 version and is up to date. √ Component @nativescript/core has 7.0.0 version and is up to date. × Component @nativescript/ios is not installe... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ptomasini |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| go-import | github.com/NativeScript/nativescript-angular git https://github.com/NativeScript/nativescript-angular.git |
| octolytics-dimension-user_id | 7392261 |
| octolytics-dimension-user_login | NativeScript |
| octolytics-dimension-repository_id | 35951404 |
| octolytics-dimension-repository_nwo | NativeScript/nativescript-angular |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 35951404 |
| octolytics-dimension-repository_network_root_nwo | NativeScript/nativescript-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 | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width