rgossiaux / svelte-headlessui

Unofficial Svelte port of the Headless UI component library
https://svelte-headlessui.goss.io
MIT License
1.79k stars 97 forks source link

Time to update svelte? #167

Open socketopp opened 1 year ago

socketopp commented 1 year ago

Just installed this library and tried to run and received this:

$ npm install -D @rgossiaux/svelte-headlessui && npm run dev
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: distjobs@0.0.1
npm ERR! Found: svelte@4.2.0
npm ERR! node_modules/svelte
npm ERR!   dev svelte@"^4.0.5" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer svelte@"^3.47.0" from @rgossiaux/svelte-headlessui@2.0.0
npm ERR! node_modules/@rgossiaux/svelte-headlessui
npm ERR!   dev @rgossiaux/svelte-headlessui@"*" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
Greenheart commented 1 year ago

This is a duplicate of #152

Here's a workaround fix until Svelte 4 is added: https://github.com/rgossiaux/svelte-headlessui/issues/152#issuecomment-1660746106