Skip to content

Error on Img tag, but compiles fine. #59

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

Open
MichalNemec opened this issue Jan 21, 2025 · 0 comments
Open

Error on Img tag, but compiles fine. #59

MichalNemec opened this issue Jan 21, 2025 · 0 comments

Comments

@MichalNemec
Copy link

MichalNemec commented Jan 21, 2025

<script>
	import image from '$lib/...';
	import { FxReveal as ImgFx } from '@zerodevx/svelte-img';
</script>

<div class="flex">
        <ImgFx src={image} alt="Hello World" />
</div>
Object literal may only specify known properties, and '"alt"' does not exist in type 'FxRevealProps'.js(2353)
(property) "alt": string

How to properly do this that the alt is not throwing error?

Html is rendered correctly, its just VSCode 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

1 participant