jonasgeiler / svelte-infinite-loading

An infinite scroll component for Svelte, to help you implement an infinite scroll list more easily.
MIT License
304 stars 11 forks source link

Getting warning for this package after upgrading to sveltekit 2 #14

Open msdrigg opened 11 months ago

msdrigg commented 11 months ago
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.

svelte-infinite-loading@1.3.8

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"
+   }
  }
jonasgeiler commented 9 months ago

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.

GenieTim commented 1 month ago

Hi @jonasgeiler , how is it going with v2, is there an issue one may help with?

Btw., as documented here, a simple fix for current users would be to move the package to dev dependencies.