svelte-icons icon indicating copy to clipboard operation
svelte-icons copied to clipboard

Svelte-Icons has no default export.

Open flyingduck92 opened this issue 1 year ago • 1 comments

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

flyingduck92 avatar Nov 10 '23 03:11 flyingduck92

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
}
...

codingMustache avatar Nov 27 '23 16:11 codingMustache