livebud / bud

The Full-Stack Web Framework for Go
MIT License
5.58k stars 180 forks source link

onMount function in svelte doesn't work #415

Open hoachnt opened 9 months ago

hoachnt commented 9 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