-
-
Notifications
You must be signed in to change notification settings - Fork 223
Closed
Labels
FixedFixed in master branch. Pending production release.Fixed in master branch. Pending production release.bugSomething isn't workingSomething isn't working
Description
Describe the bug
One cannot use the <...> notation to typecast when using lang="ts". Because we transform the code to TSX, we get a "JSX element '...' has no corresponding closing tag." error.
To Reproduce
<script lang="ts">
const blubb = <any>null;
</script>Expected behavior
We should modify the code in a way that this works (maybe using MagicString.move to transform it to as syntax).
System (please complete the following information):
- OS: Windows
- IDE: VSCode
- Plugin/Package: Svelte for VSCode",
svelte2tsx
Additional context
Noone brought this up yet so it does not seem that much of an issue.
Metadata
Metadata
Assignees
Labels
FixedFixed in master branch. Pending production release.Fixed in master branch. Pending production release.bugSomething isn't workingSomething isn't working