alphapeter / fa-svelte

Font Awesome 5 for svelte.js
MIT License
71 stars 3 forks source link

Ref directive no longer supported #4

Closed stychu closed 5 years ago

stychu commented 5 years ago

[!] (svelte plugin) ParseError: The ref directive is no longer supported — use bind:this={icon} instead

alphapeter commented 5 years ago

There are no usages of "ref" in fa-svelte.

You've probably upgraded to svelte 3 and therefore, you need to follow the new API. https://svelte.dev/docs

The error message tells you how to resolve the issue. Use bind:this instead of ref.