Hello,
I have some struggle creating a navigation inside a panel.
I am using svelte to create different views.
What I have is a component inside drawer.svelte which contains a panel with links.
I load this panel in multiple other components, f.e. home.svelte, page1.svelte and so on.
Unfortunately, the routing works exactly twice, then I receive the Uncaught TypeError: app is undefined (panel-class.js)
error.
I have no idea what might be wrong with this approach, and would be happy for any hints.
drawer.svelte:
<script>
imports...
</script>
<Panel left>
<List>
<ListItem panelClose link="/current" title="Aktuell" />
<ListItem panelClose link="/forecast" title="Vorhersage" />
<ListItem panelClose link="/radar" title="Radar" />
<ListItem panelClose link="/einstellungen" title="Einstellungen" />
</List>
</Panel>
page1.svelte:
<script>
...
import Drawer from "../components/drawer.svelte";
...
</script>
<Page name="current">
<!-- Top Navbar -->
<Drawer />
<Navbar>
<NavLeft>
<Link iconF7="bars" panelOpen="left" />
</NavLeft>
<NavTitle>Vorhersage</NavTitle>
</Navbar>
...
</Page>