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

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

Open
2 tasks done
itaibaruch opened this issue Jan 19, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@itaibaruch
Copy link

Checks

Version

0.2.9

Description

Hi,

I got this warning in console:
Screenshot 2024-01-19 at 11 14 55

In the latest version of Vite it's required to specify svelte export:
https://github.com/sveltejs/vite-plugin-svelte/blob/main/docs/faq.md#missing-exports-condition

Reproduction Link

No response

Steps to Reproduce

  1. npm create svelte@latest my-app
  2. cd my-app
  3. npm install @splidejs/svelte-splide
  4. npm install
  5. npm run dev

Expected Behaviour

no console warning will be great

@ZerdoX-x
Copy link

I have opened a PR. Would like to get anyone's feedback on that.

Notes:
sveltejs/kit#8922
https://kit.svelte.dev/docs/packaging#anatomy-of-a-package-json-exports

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

2 participants