You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 code update, the app on the simulator crashes
Reproduction
ns create myapp --svelte
cd myapp
ns build ios
ns run ios
Make an update to app/components/Home.svelte.
Relevant log output (if applicable)
Refreshing application on device <device>...
[HMR:Svelte] Up to date
[HMR][93bc504aef60789ba4ce] success | Successfully applied update.
***** Fatal JavaScript exception - application has been terminated. *****
NativeScript encountered a fatal error: Uncaught Error: View not added to this instance. View: Page(2) CurrentParent: undefined ExpectedParent: Frame(1)
at
_removeView(file: app/webpack:/myapp/node_modules/@nativescript/core/ui/core/view-base/index.js:583:0)
at _removeEntry(file: app/webpack:/myapp/node_modules/@nativescript/core/ui/frame/frame-common.js:168:0)
at _updateBackstack(file: app/webpack:/myapp/node_modules/@nativescript/core/ui/frame/frame-common.js:246:0)
at setCurrent(file: app/webpack:/myapp/node_modules/@nativescript/core/ui/frame/index.ios.js:46:0)
at UIViewControllerImpl.viewDidAppear(file: app/webpack:/myapp/node_modules/@nativescript/core/ui/page/index.ios.js:156:0)
Successfully synced application org.nativescript.myapp on device <device>
Environment
OS: macOS 13.4.1CPU: (8) arm64 Apple M1Shell: /opt/homebrew/bin/fishnode: 16.16.0npm: 8.11.0nativescript: 8.5.3# androidjava: javac 18ndk: Not Foundapis: Not Foundbuild_tools: Not Foundsystem_images: Not Found# iosxcode: 14.3.1/14E300ccocoapods: 1.11.3python: 3.11.2python3: 3.11.2ruby: 3.1.2platforms:
- DriverKit 22.4
- iOS 16.4
- macOS 13.3
- tvOS 16.4
- watchOS 9.4
Cross-posting NativeScript/NativeScript#10361 here, as it might be something specific to Svelte's HMR.
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 code update, the app on the simulator crashes
Reproduction
ns create myapp --svelte cd myapp ns build ios ns run ios
Make an update to
app/components/Home.svelte
.Relevant log output (if applicable)
Environment
Dependencies
The text was updated successfully, but these errors were encountered: