svelte-preprocess icon indicating copy to clipboard operation
svelte-preprocess copied to clipboard

Unexpected token in svelte + pug + Ts when three dots

Open wlwatkins opened this issue 1 year ago • 1 comments

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.

wlwatkins avatar Aug 04 '22 16:08 wlwatkins

I have same problem even with quote "{...$$restProps}"

kingcw avatar Aug 08 '22 17:08 kingcw