onMount function in svelte doesn't work
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:

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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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