-
-
Notifications
You must be signed in to change notification settings - Fork 701
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
SvelteComponentTyped deprecated in Svelte 5 #2850
Comments
I attempted to use the lucide-svelte with Svelte 5 and when I try to place icons into svelte component, I get these errors: import {
Heart,
Twitter, ■ 'default' is deprecated.
Facebook, ■ 'default' is deprecated.
Linkedin, ■ 'default' is deprecated.
from 'lucide-svelte'; I was able to import like so: <script>
import Heart from 'lucide-svelte/icons/heart';
import Twitter from 'lucide-svelte/icons/twitter';
import Facebook from 'lucide-svelte/icons/facebook';
import Linkedin from 'lucide-svelte/icons/linkedin';
import MessageCircle from 'lucide-svelte/icons/message-circle';
import Clipboard from 'lucide-svelte/icons/clipboard';
import Share2 from 'lucide-svelte/icons/share-2';
</script> But the code editor LSP is complaining that <a
│ href={`https://twitter.com/intent/tweet?url=${encodeURIComponent(shareLink)}`}
│ target="_blank"
│ class="btn btn-xs bg-blue-500 text-white border-blue-700"
>
│ <Twitter class="w-4 h-4 text-white" /> ■ 'Twitter' is deprecated.
│ Twitter
</a> The package version is:
|
Can you test if |
See comment, for svelte 5 use |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
SvelteComponentTyped @deprecated Use
Component
instead. See migration guide for more information.The text was updated successfully, but these errors were encountered: