SigalZ's avatar
Level 5

wire-elements/modal installation fail

Hello,

Using Laravel 10, php 8.1, livewire 3 and bootstrap 4

I try to install the package wire-elements/modal:

composer require wire-elements/modal:^2.0

I get this error:

  • Root composer.json requires wire-elements/modal 2.0, found wire-elements/modal[dev-main, 0.1.0, ..., 0.1.7, 1.0.0, ..., 1.0.8, 2.0.0-beta, ..., 2.0.10] but it does not match the constraint.

I posted on the package issues 2 weeks ago but got no repsonse.

Can anyone please help solve this issue?

0 likes
6 replies
jeffallen's avatar

Did you update your composer.json file to reflect this?

Snapey's avatar

why are you specifying v2.0?

remove :^2.0 from your command and let composer work it out?

You know that its written for tailwind ?

SigalZ's avatar
Level 5

I added ^2 because it says so in the documentation. I also read there is an option to use bootstrap instead of tailwind

jlrdw's avatar

Also do you need an add on modal, a modal is very easy to do anyway, just requires:

  • a little css
  • a small amount of javascript

@jeffreyway even has videos on modals (I did not bookmark however).

Please or to participate in this conversation.