svelte-subcomponent-preprocessor icon indicating copy to clipboard operation
svelte-subcomponent-preprocessor copied to clipboard

A component can only have one instance-level <script> element

Open nickyhajal opened this issue 4 years ago • 1 comments

I'm giving this a try but getting:

1:48:40 PM [vite] Error when evaluating SSR module /src/routes/board/[boardId]/index.svelte: ParseError: A component can only have one instance-level <script> element

That file doesn't have multiple script tags or even a subcomponent defined

Thanks!

nickyhajal avatar Dec 08 '21 19:12 nickyhajal

Sorry that I've been slow to get to this. Would you be able to provide a minimal reproducible example?

srmullen avatar Jan 12 '22 20:01 srmullen