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. #1

Open
niemyjski opened this issue Dec 15, 2023 · 10 comments

Comments

@niemyjski
Copy link

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

@perezd
Copy link

perezd commented Dec 15, 2023

I just experienced this using bun 1.0.17, for additional debugging.

EDIT: I found my way here from following this: https://www.shadcn-svelte.com/docs/installation#icons

@bfovez
Copy link

bfovez commented Jan 4, 2024

Same warning here.

@bfovez
Copy link

bfovez commented Jan 8, 2024

Hello!
Is there a fix in progress?

vyconm added a commit to vyconm/radix-icons-svelte-enhanced that referenced this issue Jan 10, 2024
Fix the Missing Export Condition Error caused by Vite deprecating support without it in the future.

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

relates to issue Brisklemonade#1
Brisklemonade#1
@vyconm
Copy link

vyconm commented Jan 10, 2024

Hey Kamell @Brisklemonade , I started a pull request to fix this, hope I added it to the right location.

@shiftlabs1
Copy link

@Brisklemonade any chance you can accept the PR ?

@kobe-ra
Copy link

kobe-ra commented Jan 21, 2024

@Brisklemonade accept the pr please

@bfovez
Copy link

bfovez commented Jan 27, 2024

Sadly, looks like the project is abandoned. I'm considering switching to lucide-svelte.

@vyconm
Copy link

vyconm commented Jan 28, 2024

I might fork this and in the process also optimise the svg's with SVGO, then submit the new repo for shadcn svelte.

@jorgeteixe
Copy link

@vyconm If you can, that would be cool. If not I can do.

@alec-c4
Copy link

alec-c4 commented Feb 13, 2024

Hey! Any update with this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants