primocms / builder

MIT License
11 stars 31 forks source link

Svelte browser can not resolve @iconify #14

Closed malipetek closed 8 months ago

malipetek commented 9 months ago

Hello, maybe this is an issue with the rollup browser or something with my configuration. I downloaded and published primo to caprover with docker image. Any idea what this might be appreciated.

Cannot import "@iconify/svelte/dist/Icon.svelte": no matched export path was found in "pkg_name/package.json"

image image
malipetek commented 9 months ago

Btw this is the repo but I also see the same in local development so I don't think this is something with the production environment or deployment misconfig.

matthewmateo commented 9 months ago

Looks like this was caused by a change in cdnjs - you can fix it by changing the import to import Icon from '@iconify/svelte'

I've fixed the imports in the themes, so this shouldn't be an issue for new sites going forward.

kaechele commented 8 months ago

Doesn't look like the themes' primo.json files were updated. They still contain import Icon from '@iconify/svelte/dist/Icon.svelte'. I was still hitting this issue when installing primo today.

matthewmateo commented 8 months ago

Okay - I think that did it. Let me know if y'all are still seeing the issue anywhere.