livebud / bud

The Full-Stack Web Framework for Go
MIT License
5.53k stars 182 forks source link

onMount function in svelte doesn't work #415

Open hoachnt opened 4 months ago

hoachnt commented 4 months ago

code:

<script>
  import { onMount } from "svelte";

  onMount(() => {
    console.log("Not nice");
  });
</script>
<h1>New Weather</h1>
<form method="post" action={`/`}>
  <!-- Add input fields here -->
  <input type="submit" value="Create Weather" />
</form>
<br />

<a href={/}>Back</a>

error: Screenshot from 2024-02-16 16-58-39

bud version: bud: 0.2.8 svelte: 3.47.0 react: 18.0.0