primocms / primo

Primo is a visual CMS with a built-in code editor, Svelte blocks, and static site generator.
https://primocms.org
MIT License
1.97k stars 514 forks source link

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

Closed widojansen closed 9 months ago

widojansen commented 9 months ago

I followed the self hosting instructions from the README file. Have a Supabase account and created the database. Locally I have done npm install and then rpm run dev. Primo is shown and I can login as admin.

All is working fine except for this error: Error: Cannot import "@iconify/svelte/dist/Icon.svelte": no matched export path was found in "pkg_name/package.json".

On all blocks, site and primo blocks, with an Icon import.

What am I doing wrong?

OCRG-Ohio commented 9 months ago

import "@iconify/svelte" ignore next part.

mateomorris commented 9 months ago

Yeah replace import Icon from '@iconify/svelte/dist/Icon.svelte with import Icon from '@iconify/svelte' see https://github.com/primocms/builder/issues/14 for more info