rob-balfre / svelte-select

Svelte Select. A select component for Svelte
https://svelte-select-examples.vercel.app
Other
1.25k stars 175 forks source link

Upgrading today from `"@sveltejs/kit": "1.30.0"` to `"@sveltejs/kit": "2.0.0"` I'm getting a warning #656

Closed frederikhors closed 5 months ago

frederikhors commented 6 months ago

Upgrading today from "@sveltejs/kit": "1.30.0" to "@sveltejs/kit": "2.0.0" I'm getting this warning:

WARNING: The following packages have a svelte field in their package.json but no exports condition for svelte.

svelte-select@5.8.1
svelte-floating-ui@1.2.8

Please see https://github.com/sveltejs/vite-plugin-svelte/blob/main/docs/faq.md#missing-exports-condition for details.

Can we please fix this?

frederikhors commented 6 months ago

I opened https://github.com/fedorovvvv/svelte-floating-ui/issues/11.

fedorovvvv commented 6 months ago

Yop! I answered here: comment

Cluster2a commented 5 months ago

@frederikhors, how is it going? We still have this message and we would like to get rid of it.

frederikhors commented 5 months ago

Yeah. I think you should ask to @rob-balfre...

rob-balfre commented 5 months ago

v5.8.2

Cluster2a commented 5 months ago

v5.8.2

image

@rob-balfre, the issue still exists. As far as I know, you need to add the exports to your package.json:

"exports": {
   ".": {
     "svelte": "./dist/index.js"
   }
}

https://github.com/sveltejs/vite-plugin-svelte/blob/main/docs/faq.md#missing-exports-condition

mcmxcdev commented 5 months ago

Looks like there is already an open PR that fixed this, see: https://github.com/rob-balfre/svelte-select/pull/651

rob-balfre commented 5 months ago

v5.8.3

Cluster2a commented 5 months ago

v5.8.3

@rob-balfre, message is gone - thanks a lot!