Introvertuous / svelte-icons

Icon components for svelte
https://svelte-icons.vercel.app
292 stars 21 forks source link

Svelte-Icons has no default export. #67

Open flyingduck92 opened 12 months ago

flyingduck92 commented 12 months ago

After install svelte-icons with npm install. The imported Icon keep giving me this error

path/to/project/node_modules/svelte-icons/fa/FaAngellist.svelte"' has no default export.js

codingMustache commented 11 months ago

Add this to you project

src/svelte-icons.d.ts

declare module 'svelte-icons/fa/*.svelte' {
    const e: any;
    export default e
}
declare module 'svelte-icons/md/*.svelte' {
    const e: any;
    export default e
}
...