Closed kuchaguangjie closed 2 years ago
Svelte-Heros-v2 doesn't have Svelte-Heros dependencies. See package.json
You need to run pnpm i -D svelte-heros-v2
. Please read the README
Ah ha, it's flowbite-svelte
depends on svelte-heros
v1 ..
Upgrade flowbite-svelte
to ^0.26.3
, then it worked.
And, since the icon
property of <Sidebar>
is replaced by <svelte:fragment slot="icon">
in new version, a bit code refactoring is needed if upgrade from pretty old versions.
e.g
<SidebarItem label="Home" href="/home">
<svelte:fragment slot="icon">
<Home variation="solid"/>
</svelte:fragment>
</SidebarItem>
BTW, it should be pnpm i svelte-heros-v2
, not pnpm i -D svelte-heros-v2
I think.
Since the readme use npm i svelte-heros-v2@latest
, without -D
.
Description of the bug
use
svelte-heros-v2
, without v1, on start got error:If v2 depends on v1 to work, then might should mention that in README.
But, IMO, v2 should not need v1, otherwise when import icon in .svelte file, it will show both icons, which may be a bit mess.
Steps To Reproduce
pnpm rm svelte-heros
pnpm add svelte-heros-v2@latest
pnpm prune
pnpm dev
on start, will get above error,Additional Information
No response