Closed hartwm closed 2 years ago
Well, this is a headache
How about to put autoimport()
above sveltekit()
in the plugins
object?
This works! Thank you
I did notice some type issues with component
Argument of type '{ components: string[]; include: string[]; }' is not assignable to parameter of type 'string | string[] | undefined'. Object literal may only specify known properties, and 'components' does not exist in type 'string[]'.ts(2345)
This works! Thank you
I did notice some type issues with component
Argument of type '{ components: string[]; include: string[]; }' is not assignable to parameter of type 'string | string[] | undefined'. Object literal may only specify known properties, and 'components' does not exist in type 'string[]'.ts(2345)
Thanks for reporting. It seems the warning was caused by the JSDoc comments. I'll fix that
For me moving the Auto Import plugin above SK gives Component is not defined errors for auto imported ones and invalid syntax errors if below.
Never mind, clearing .svelte-kit and re-installing deps fiexed.
I have a fairly blank starter theme running on sveltekit latest which uses sveltekit plugin for vite and a vite.config file.
my vite.config.js file looks like
the src/components/skeleton has one file at src/components/skeleton/Menu.svelte for testing with this markup
<h1>This is a menu component</h1>
error message