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

svelte5 next.183 issues with passing props #59

Closed
sansjack opened this issue Jul 14, 2024 · 1 comment
Closed

svelte5 next.183 issues with passing props #59

sansjack opened this issue Jul 14, 2024 · 1 comment

Comments

@sansjack
Copy link
Contributor

sansjack commented Jul 14, 2024

Hey all, since upgrading my svelte5 I'm getting these error on my exported SVG components:

Type '{ class: string; }' is not assignable to type 'Properties<SvelteComponent<SVGAttributes<SVGSVGElement>, any, any>, any>'.

being used like this:

import GoogleIcon from './google.svg?component' // const GoogleIcon: Component<SvelteComponent<SVGAttributes<SVGSVGElement>, any, any>, {}, string>

export { GoogleIcon }

example of error when using the component:

<GoogleIcon class="size-6" /> //Type '{ class: string; }' is not assignable to type 'Properties<SvelteComponent<SVGAttributes<SVGSVGElement>, any, any>, any>'.

current package versions:

  • "@poppanator/sveltekit-svg": "^5.0.0-svelte5.4"
  • "svelte": "^5.0.0-next.183"
@poppa
Copy link
Owner

poppa commented Jul 16, 2024

There's a new pre-release available.
Please try it out and see if it solves the issue 👍

@poppa poppa closed this as completed Jul 17, 2024
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

2 participants