-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed
Description
Describe the bug
'undefined' is logged with the following:
Reproduction
- app.svelte
<script>
import Demo from "./Demo.svelte";
let elDemo;
function show() {
console.log(elDemo);
}
</script>
<div>
<Demo width="100" bind:this={elDemo}></Demo>
<button onclick={show}>
show
</button>
</div>
- Demo.svelte
<script>
let { name ="world" } = $props();
</script>
<div>hello, {name}!</div>
Logs
undefined xNSystem Info
MacOS/ChromeSeverity
blocking an upgrade
Metadata
Metadata
Assignees
Labels
No labels