Title: iOS Simulator Crash on HMR updates · Issue #10361 · NativeScript/NativeScript · GitHub
Open Graph Title: iOS Simulator Crash on HMR updates · Issue #10361 · NativeScript/NativeScript
X Title: iOS Simulator Crash on HMR updates · Issue #10361 · NativeScript/NativeScript
Description: Issue Description I have a fresh install of Nativescript+Svelte, per https://svelte-native.technology/docs#quick-start. I have built and started the app. This successfully opens on my iOS Simulator. However, on the first and ever other c...
Open Graph Description: Issue Description I have a fresh install of Nativescript+Svelte, per https://svelte-native.technology/docs#quick-start. I have built and started the app. This successfully opens on my iOS Simulator...
X Description: Issue Description I have a fresh install of Nativescript+Svelte, per https://svelte-native.technology/docs#quick-start. I have built and started the app. This successfully opens on my iOS Simulator...
Opengraph URL: https://github.com/NativeScript/NativeScript/issues/10361
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"iOS Simulator Crash on HMR updates","articleBody":"### Issue Description\n\nI have a fresh install of Nativescript+Svelte, per https://svelte-native.technology/docs#quick-start. I have built and started the app. This successfully opens on my iOS Simulator. However, on the first and ever other code update, the app on the simulator crashes\n\n### Reproduction\n\n```shell\r\nns create myapp --svelte\r\ncd myapp\r\nns build ios\r\nns run ios\r\n```\r\n\r\nMake an update to `app/components/Home.svelte`.\n\n### Relevant log output (if applicable)\n\n```shell\nRefreshing application on device \u003cdevice\u003e...\r\n [HMR:Svelte] Up to date\r\n [HMR][93bc504aef60789ba4ce] success | Successfully applied update.\r\n ***** Fatal JavaScript exception - application has been terminated. *****\r\n NativeScript encountered a fatal error: Uncaught Error: View not added to this instance. View: Page(2) CurrentParent: undefined ExpectedParent: Frame(1)\r\n at\r\n _removeView(file: app/webpack:/myapp/node_modules/@nativescript/core/ui/core/view-base/index.js:583:0)\r\n at _removeEntry(file: app/webpack:/myapp/node_modules/@nativescript/core/ui/frame/frame-common.js:168:0)\r\n at _updateBackstack(file: app/webpack:/myapp/node_modules/@nativescript/core/ui/frame/frame-common.js:246:0)\r\n at setCurrent(file: app/webpack:/myapp/node_modules/@nativescript/core/ui/frame/index.ios.js:46:0)\r\n at UIViewControllerImpl.viewDidAppear(file: app/webpack:/myapp/node_modules/@nativescript/core/ui/page/index.ios.js:156:0)\r\nSuccessfully synced application org.nativescript.myapp on device \u003cdevice\u003e\n```\n\n\n### Environment\n\n```yaml\r\nOS: macOS 13.4.1\r\nCPU: (8) arm64 Apple M1\r\nShell: /opt/homebrew/bin/fish\r\nnode: 16.16.0\r\nnpm: 8.11.0\r\nnativescript: 8.5.3\r\n\r\n# android\r\njava: javac 18\r\nndk: Not Found\r\napis: Not Found\r\nbuild_tools: Not Found\r\nsystem_images: Not Found\r\n\r\n# ios\r\nxcode: 14.3.1/14E300c\r\ncocoapods: 1.11.3\r\npython: 3.11.2\r\npython3: 3.11.2\r\nruby: 3.1.2\r\nplatforms: \r\n - DriverKit 22.4\r\n - iOS 16.4\r\n - macOS 13.3\r\n - tvOS 16.4\r\n - watchOS 9.4\r\n```\r\n\r\n### Dependencies\r\n\r\n```json\r\n\"dependencies\": {\r\n \"@nativescript/core\": \"~8.5.0\",\r\n \"@nativescript/theme\": \"~3.0.2\",\r\n \"svelte-native\": \"~1.0.0\"\r\n},\r\n\"devDependencies\": {\r\n \"@nativescript/ios\": \"8.5.2\",\r\n \"@nativescript/preview-cli\": \"1.0.5\",\r\n \"@nativescript/types\": \"~8.5.0\",\r\n \"@nativescript/webpack\": \"~5.0.14\",\r\n \"svelte\": \"~3.44.0\",\r\n \"svelte-loader\": \"^3.1.2\",\r\n \"svelte-native-preprocessor\": \"^1.0.0\",\r\n \"svelte-preprocess\": \"^4.7.0\",\r\n \"typescript\": \"~4.8.4\"\r\n}\r\n```\n\n### Please accept these terms\n\n- [X] I have searched the [existing issues](https://github.com/NativeScript/NativeScript/issues) as well as [StackOverflow](https://stackoverflow.com/questions/tagged/nativescript) and this has not been posted before\n- [X] This is a bug report\n- [X] I agree to follow this project's [Code of Conduct](https://github.com/NativeScript/NativeScript/blob/master/tools/notes/CONTRIBUTING.md#coc)","author":{"url":"https://github.com/orbiteleven","@type":"Person","name":"orbiteleven"},"datePublished":"2023-08-10T08:12:25.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/10361/NativeScript/issues/10361"}
| 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:103493e0-9926-9ad6-456c-bd2fc7671408 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 98F8:34E900:986640:C6B664:6A600782 |
| html-safe-nonce | 1e22164b1421ca18c507c40e9dfb604e5e98a4f30e04f5af719838374076266d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OEY4OjM0RTkwMDo5ODY2NDA6QzZCNjY0OjZBNjAwNzgyIiwidmlzaXRvcl9pZCI6IjkyMDk1NDAxMTM2NDI1NTUyNjYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 88d71842749923e0af94a9e3f95d7188bda7fffea65caaeee3408d105345bd7e |
| hovercard-subject-tag | issue:1844657553 |
| 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/10361/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7de45c47b1e9f40d6639b20f690b6177629f0bc34aea71bde2564a052a682658/NativeScript/NativeScript/issues/10361 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7de45c47b1e9f40d6639b20f690b6177629f0bc34aea71bde2564a052a682658/NativeScript/NativeScript/issues/10361 |
| og:image:alt | Issue Description I have a fresh install of Nativescript+Svelte, per https://svelte-native.technology/docs#quick-start. I have built and started the app. This successfully opens on my iOS Simulator... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | orbiteleven |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5789899e92b20db289de946d86eb20bf5c9626276695d68f58a8c47cdda699b7 |
| turbo-cache-control | no-preview |
| go-import | github.com/NativeScript/NativeScript git https://github.com/NativeScript/NativeScript.git |
| octolytics-dimension-user_id | 7392261 |
| octolytics-dimension-user_login | NativeScript |
| octolytics-dimension-repository_id | 31492490 |
| octolytics-dimension-repository_nwo | NativeScript/NativeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 31492490 |
| octolytics-dimension-repository_network_root_nwo | NativeScript/NativeScript |
| 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 | 6ddc048ddf80664b9b33547b619db10313c482f1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width