svelte-infinite-loading icon indicating copy to clipboard operation
svelte-infinite-loading copied to clipboard

Getting warning for this package after upgrading to sveltekit 2

Open msdrigg opened this issue 1 year ago • 2 comments

9:29:01 AM [vite-plugin-svelte] WARNING: The following packages have a svelte field in their package.json but no exports condition for svelte.

[email protected]

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

The recommended fix is found here https://github.com/sveltejs/vite-plugin-svelte/blob/main/docs/faq.md#missing-exports-condition

// package.json
  "files": ["dist"],
  "svelte": "dist/index.js",
+ "exports": {
+   ".": {
+     "svelte": "./dist/index.js"
+   }
  }

msdrigg avatar Dec 18 '23 14:12 msdrigg

Hey Scott! After releasing version 3.0.0 of svelte-tiny-virtual-list I will start working on proper SvelteKit support for this package as well and release it with version 2.0.0 around April (or earlier depending on my workload). Hopefully this should fix any warnings or incompatibilities.

jonasgeiler avatar Feb 12 '24 12:02 jonasgeiler