'Svelte `unexpected character '#'` when using an if block
I'm trying to conditionally display information inside a <textarea> like this :
<script>
let name = 'world';
</script>
<textarea>
{#if name}{name}{/if}
</textarea>
This throws Unexpected character '#' when compiling.
What is happening here ?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
