Svelte FW7: Error: Framework7: can't create a View instance because el must be an HTMLElement or Dom7 object

I’m getting an error when using Framework7 and Svelte with Capacitor. If the app is already installed on a physical device or a simulator and hasn’t been open in a day or more, when I open the app I get a white screen after a quick flash of the splash screen. With that I’m getting this error: “Error: Framework7: can’t create a View instance because el must be an HTMLElement or Dom7 object”.

If I do a fresh install, everything works fine again, no problems loading the app. But when it’s then let sit for another day or so, the same issue arises again. I’ve tried everything I can think of with no success.

Does anyone have any ideas about what could be causing this issue?