Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onMount function in svelte doesn't work #415

Open
hoachnt opened this issue Feb 16, 2024 · 0 comments
Open

onMount function in svelte doesn't work #415

hoachnt opened this issue Feb 16, 2024 · 0 comments

Comments

@hoachnt
Copy link

hoachnt commented Feb 16, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant