-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Svelte v5 compiling v4 component: Component has unused export property #12367
Comments
Reproduction is always helpful: it could be a specific way you wrote the code that is breaking this so please show us the whole file. 😄 |
You're twisting my arm with that request! Haha. I cannot always show codebase from this project. This time I think I can (nothing new in it): <script lang="ts">
import { combineClasses } from "$lib/utils/helpers.js";
import { writable } from "svelte/store";
import Bar, { type ProgressRange } from "./ProgressBar.svelte";
// Props.
/**
* Sets the progress minimum value.
*/
export let minimum: number = 0;
// Props.
/**
* Sets the progress maximum value.
*/
export let maximum: number = 100;
// Props.
/**
* Sets the progress height, in any CSS unit.
*/
export let height: string = "";
// Props.
/**
* Sets the additional CSS classes for the progress DIV container
*/
let cssClass: string = "";
export { cssClass as class };
let progressRange = writable<ProgressRange>({
minimum: 0,
maximum: 0,
});
$: progressRange.set({
minimum,
maximum
});
</script>
<div class={combineClasses(`progress`, cssClass)} style:height>
<slot {progressRange} {Bar} />
</div> This is the entirety of the component. |
Ok fixed it, will pr soon |
5 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
This I show no REPL because it is a build thing:
The component is a Bootstrap progress component (the outer DIV). Really simple stuff:
It seems it doesn't like the shorthand syntax, but the built product works as expected.
Furthermore, I see Intellisense feedback stating the same thing in VS Code (this is v5-next.178):
Reproduction
Not needed, hopefully?
Logs
No response
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: