Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
msdrigg opened this issue Dec 18, 2023 · 2 comments
Open

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

msdrigg opened this issue Dec 18, 2023 · 2 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@msdrigg
Copy link

msdrigg commented Dec 18, 2023

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 jonasgeiler added the bug Something isn't working label Feb 12, 2024
@jonasgeiler jonasgeiler self-assigned this Feb 12, 2024
@jonasgeiler jonasgeiler added this to the 2.0.0 milestone Feb 12, 2024
@jonasgeiler
Copy link
Owner

jonasgeiler commented Feb 12, 2024

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
Copy link

GenieTim commented Oct 6, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants