svelte-preprocess
svelte-preprocess copied to clipboard
Unexpected token in svelte + pug + Ts when three dots
Describe the bug
A clear and concise description of what the bug is.
SvelteFC({...chartConfigs})
leads to an Unexpected token (ts)
error
To Reproduce
To help us help you, if you've found a bug please consider the following:
<template lang="pug">
#chart-container
SvelteFC({...chartConfigs})
</template>
Expected behavior
A clear and concise description of what you expected to happen.
This works fine
<div id="chart-container" >
<SvelteFC {...chartConfig} />
</div>
I'm sure the answer is a special character that I am missing, but don't know what to look for on google.
I have same problem even with quote "{...$$restProps}"