mirror of https://github.com/sveltejs/svelte
parent
d9698551fb
commit
a3f52f9348
@ -0,0 +1,14 @@
|
||||
[
|
||||
{
|
||||
"code": "invalid-animation",
|
||||
"message": "Animations can only be applied to DOM elements, not components",
|
||||
"start": {
|
||||
"line": 7,
|
||||
"column": 8
|
||||
},
|
||||
"end": {
|
||||
"line": 7,
|
||||
"column": 19
|
||||
}
|
||||
}
|
||||
]
|
@ -0,0 +1,7 @@
|
||||
<script>
|
||||
import Widget from './Widget.svelte';
|
||||
|
||||
function foo() {}
|
||||
</script>
|
||||
|
||||
<Widget animate:foo />
|
Loading…
Reference in new issue