-
Notifications
You must be signed in to change notification settings - Fork 9
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
Cannot use $$restProps
in runes mode (Svelte 5)
#48
Comments
When upgrading to support Svelte 5 and runes, you can replace $$restProps with $props. Example: <script>
...
const props = $props();
...
</script>
<time {title} {...props} datetime={timestamp}>
{formatted}
</time> |
$: is also not allowed https://github.com/metonym/svelte-time/blob/master/src/Time.svelte#L51C1-L62 |
@kvangrae any chance you could submit a pr for this? |
Sure, no problem. Let me get back to you. |
@niemyjski have a look at pull request #51 and let me know what you think. |
Is there a rough estimation as to how many Svelte users explicitly opt-in to Runes mode? If runes mode is not the default in Svelte 5, is it possible that this user base is smaller than Svelte 3/4/5 (non-runes mode)? |
When using svelte-time as a dependency in my project and compiling in runes mode using Svelte 5:
svelte.config.js
I get the following error:
This is a limitation for other projects that are using Svelte 5 and runes.
The text was updated successfully, but these errors were encountered: