Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Filament Plugin conflicts with root composer.json #17

Open
sakisdog opened this issue Feb 18, 2024 · 7 comments
Open

New Filament Plugin conflicts with root composer.json #17

sakisdog opened this issue Feb 18, 2024 · 7 comments

Comments

@sakisdog
Copy link

sakisdog commented Feb 18, 2024

Hello everyone, i am trying to generate code with the new Filament Plugin installed (v.1.0.5) but i get the below error:

Command failed: composer install
No composer.lock file present. Updating dependencies to latest instead of installing from lock file. See https://getcomposer.org/install for more information.
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - filament/filament v3.2.0 requires filament/support v3.2.0 -> satisfiable by filament/support[v3.2.0].
    - filament/filament v3.2.1 requires filament/support v3.2.1 -> satisfiable by filament/support[v3.2.1].
    - filament/filament v3.2.2 requires filament/support v3.2.2 -> satisfiable by filament/support[v3.2.2].
    - filament/filament v3.2.3 requires filament/support v3.2.3 -> satisfiable by filament/support[v3.2.3].
    - filament/filament v3.2.4 requires filament/support v3.2.4 -> satisfiable by filament/support[v3.2.4].
    - filament/filament v3.2.5 requires filament/support v3.2.5 -> satisfiable by filament/support[v3.2.5].
    - filament/filament v3.2.6 requires filament/support v3.2.6 -> satisfiable by filament/support[v3.2.6].
    - filament/filament v3.2.7 requires filament/support v3.2.7 -> satisfiable by filament/support[v3.2.7].
    - filament/filament v3.2.8 requires filament/support v3.2.8 -> satisfiable by filament/support[v3.2.8].
    - filament/filament v3.2.9 requires filament/support v3.2.9 -> satisfiable by filament/support[v3.2.9].
    - filament/filament v3.2.10 requires filament/support v3.2.10 -> satisfiable by filament/support[v3.2.10].
    - filament/filament v3.2.11 requires filament/support v3.2.11 -> satisfiable by filament/support[v3.2.11].
    - filament/filament v3.2.12 requires filament/support v3.2.12 -> satisfiable by filament/support[v3.2.12].
    - filament/filament v3.2.13 requires filament/support v3.2.13 -> satisfiable by filament/support[v3.2.13].
    - filament/filament v3.2.14 requires filament/support v3.2.14 -> satisfiable by filament/support[v3.2.14].
    - filament/filament v3.2.15 requires filament/support v3.2.15 -> satisfiable by filament/support[v3.2.15].
    - filament/filament v3.2.16 requires filament/support v3.2.16 -> satisfiable by filament/support[v3.2.16].
    - filament/filament v3.2.17 requires filament/support v3.2.17 -> satisfiable by filament/support[v3.2.17].
    - filament/filament v3.2.18 requires filament/support v3.2.18 -> satisfiable by filament/support[v3.2.18].
    - filament/filament v3.2.19 requires filament/support v3.2.19 -> satisfiable by filament/support[v3.2.19].
    - filament/filament v3.2.20 requires filament/support v3.2.20 -> satisfiable by filament/support[v3.2.20].
    - filament/filament v3.2.21 requires filament/support v3.2.21 -> satisfiable by filament/support[v3.2.21].
    - filament/filament v3.2.22 requires filament/support v3.2.22 -> satisfiable by filament/support[v3.2.22].
    - filament/filament v3.2.23 requires filament/support v3.2.23 -> satisfiable by filament/support[v3.2.23].
    - filament/filament v3.2.24 requires filament/support v3.2.24 -> satisfiable by filament/support[v3.2.24].
    - filament/filament v3.2.25 requires filament/support v3.2.25 -> satisfiable by filament/support[v3.2.25].
    - filament/filament v3.2.26 requires filament/support v3.2.26 -> satisfiable by filament/support[v3.2.26].
    - filament/filament v3.2.27 requires filament/support v3.2.27 -> satisfiable by filament/support[v3.2.27].
    - filament/filament v3.2.28 requires filament/support v3.2.28 -> satisfiable by filament/support[v3.2.28].
    - filament/filament v3.2.29 requires filament/support v3.2.29 -> satisfiable by filament/support[v3.2.29].
    - filament/filament v3.2.30 requires filament/support v3.2.30 -> satisfiable by filament/support[v3.2.30].
    - filament/filament v3.2.31 requires filament/support v3.2.31 -> satisfiable by filament/support[v3.2.31].
    - filament/filament v3.2.32 requires filament/support v3.2.32 -> satisfiable by filament/support[v3.2.32].
    - filament/filament v3.2.33 requires filament/support v3.2.33 -> satisfiable by filament/support[v3.2.33].
    - filament/filament v3.2.34 requires filament/support v3.2.34 -> satisfiable by filament/support[v3.2.34].
    - filament/support[v3.2.0, ..., v3.2.34] require livewire/livewire ^3.2.3 -> found livewire/livewire[v3.2.3, ..., v3.4.4] but it conflicts with your root composer.json require (^2.11).
    - Root composer.json requires filament/filament ^3.2 -> satisfiable by filament/filament[v3.2.0, ..., v3.2.34].

In composer.json i see that it requires "livewire/livewire": "^2.11". Tried to edit the composer.json with "livewire/livewire": "^3.0" and run the code generation again but it goes back to 2.11.

@5SMNOONMS5
Copy link

I also have this problem too

@TiagoSilvaPereira
Copy link
Owner

@nicollassilva, could you please take a look at it?

@nicollassilva
Copy link
Collaborator

nicollassilva commented Feb 20, 2024

This happens because we have an option within Vemto 1 called Auth Scaffold with Jetstream, when checking this option, Vemto adds a version of Livewire within composer.json (Version 2.x)

For you to work with Filament 3 plugin, you must uncheck this option and remove version 2 of Livewire from within composer.json, as Filament works with version ^3.0.

This alone should work, but I recommend that you start a new project and uncheck the option above within the generation screen.

In Vemto 2 we will not have this problem and it will already come with native support for Filament 3 😀

@sakisdog
Copy link
Author

@nicollassilva I tried to create a new project and unchecked the "Auth Scaffold with Jetstream" option. Code generation completed successfully but when i was trying to run the migrations i was getting the below error
local.ERROR: Interface "Filament\Models\Contracts\FilamentUser" not found {"exception":"[object] (Error(code: 0): Interface \"Filament\\Models\\Contracts\\FilamentUser\" not found at D:\\Laravel_Projects\\hotel_bookingv4\\app\\Models\\User.php:15)

I searched inside the vendor folder and filament folder was missing. I ran it again in a new folder and still the same result. For some unknown reason Filament is not installed, but i get no errors during code generation. All the relative filament files produced by the plugin are generated normally.

@MeisamMulla
Copy link

@nicollassilva I'm running into the same issue as @sakisdog. Any suggestions on what to do other than wait for v2?

@TiagoSilvaPereira
Copy link
Owner

@sakisdog @MeisamMulla does installing Filament manually solve this problem?

@nicollassilva
Copy link
Collaborator

@sakisdog @MeisamMulla try installing Filament manually in the project and then generating the resources.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants