livebud / livebud/bud

onMount function in svelte doesn't work

Open
#415 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
5.6k
Forks
175
PR merge metrics
No merged PRs in 30d

Description

code:
```svelte

import { onMount } from "svelte";

onMount(() => {
console.log("Not nice");
});

New Weather



Back
```
error:
![Screenshot from 2024-02-16 16-58-39](https://github.com/livebud/bud/assets/91771575/b99a0013-e8e2-4ecd-ad04-818fea2445c5)

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the provided Svelte snippet with bud 0.2.8, Svelte 3.47.0, and React 18.0. Inspect the reported error and verify how the onMount callback is handled. Done means the example renders without the reported error and logs "Not nice" when mounted.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.