-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Closed
Description
Describe the bug
Invalid directives applied on components, like style:
or transition:
, give helpful errors, like Transitions can only be applied to DOM elements, not components
. However, animate:
directions on directives give a rather unhelpful errors like Not implemented: Animation
.
It'd be great if we have a better error, like Animations can only be applied to DOM elements, not components
.
Reproduction
https://svelte.dev/repl/817ea6490c9e4ad7a42a2ed6a9c9bec0?version=3.59.1
Alternatives
Maybe consider defining what "animation" means in the context of components?
Logs
No response
System Info
n/a
Severity
annoyance
Metadata
Metadata
Assignees
Labels
No labels