-
-
Notifications
You must be signed in to change notification settings - Fork 98
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
Fresh laravel installation failed #96
Comments
Try upgrading laravel-inertia to ^1.0 in composer.json
|
im installed inertia 1.0 with composer require inertiajs/inertia-laravel and composer require outhebox/laravel-translations --with-all-dependencies returns this error
|
Are you sure you're installing the latest version of this package? I see that v1.0.0 requires |
im installed fresh laravel with composer only installed inertia-laravel package no other package was installed try to install this package returns the above error. please try this translation package installation in frash laravel project. |
I get the same error as @raakkan in my project. I did run composer update before trying to install the package but it didn't help. |
same error here, i dont have inertia-laravel installed in my project. probably related issue brick/varexporter#31 |
Hi @raakkan, please use the following command to install composer require outhebox/laravel-translations --with-all-dependencies |
@MohmmedAshraf that's the command I tried to use as well in my project and I get the same error as the other users do with it. |
Hi @cwbsl, i just installed fresh Laravel app and installed the package without any issue with same command |
Perhaps sharing your composer.json contents would help. |
I have the same problem. Even on a fresh installation of laravel getting the same conflicts on composer. |
{
"name": "laravel/laravel",
"type": "project",
"description": "The skeleton application for the Laravel framework.",
"keywords": ["laravel", "framework"],
"license": "MIT",
"require": {
"php": "^8.2",
"laravel/framework": "^11.0",
"laravel/tinker": "^2.9",
"outhebox/laravel-translations": "^1.0"
},
"require-dev": {
"fakerphp/faker": "^1.23",
"laravel/pint": "^1.13",
"laravel/sail": "^1.26",
"mockery/mockery": "^1.6",
"nunomaduro/collision": "^8.0",
"pestphp/pest": "^2.34",
"pestphp/pest-plugin-laravel": "^2.3",
"spatie/laravel-ignition": "^2.4"
},
"autoload": {
"psr-4": {
"App\\": "app/",
"Database\\Factories\\": "database/factories/",
"Database\\Seeders\\": "database/seeders/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"scripts": {
"post-autoload-dump": [
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
"@php artisan package:discover --ansi"
],
"post-update-cmd": [
"@php artisan vendor:publish --tag=laravel-assets --ansi --force"
],
"post-root-package-install": [
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"@php artisan key:generate --ansi",
"@php -r \"file_exists('database/database.sqlite') || touch('database/database.sqlite');\"",
"@php artisan migrate --graceful --ansi"
]
},
"extra": {
"laravel": {
"dont-discover": []
}
},
"config": {
"optimize-autoloader": true,
"preferred-install": "dist",
"sort-packages": true,
"allow-plugins": {
"pestphp/pest-plugin": true,
"php-http/discovery": true
}
},
"minimum-stability": "dev",
"prefer-stable": true
} |
Seems like when i use : instead of it works well. |
Command
|
i created new project => copy MohmmedAshraf scripts to my composer.json => run composer update => run all command start from this command "php artisan translations:install". its work for me. |
So it seems that when using PHPUnit it doesn't work, but when using Pest it's working. We can't switch to Pest for now, is there a solution to keep using PHPUnit? |
@MohmmedAshraf Perhaps the composer.json file in this package can be cleaned up a little to prevent these issues. Mine installed just fine, so I can't directly relate, but here are a few observations: Both
|
Hi @JorgenSolli, Thank you you are correct i just didn't notice that both are included in the composer.json also i don't have enough time to debug this out, i've applied ur suggestion hopefully it will works. |
Hi @cwbsl, please check the latest release and let me know if it works for you |
I ran this command:
And got this output:
This is my composer require parts:
|
I'd recommend waiting for Pull Request #115 to get merged. However, if you urgently need it, you can add the following to composer.json and then run
Make sure to switch back to the official package once the merge is through. |
This should be fixed in the latest version thanks to @jonasfrisell |
Fresh laravel installation failed with this error
`
Your requirements could not be resolved to an installable set of packages.
Problem 1
- outhebox/laravel-translations[0.0.1, ..., 0.1.2] require brick/varexporter ^0.3.7 -> satisfiable by brick/varexporter[0.3.7, 0.3.8].
- outhebox/laravel-translations 1.0.0 requires inertiajs/inertia-laravel ^0.6.11 -> satisfiable by inertiajs/inertia-laravel[v0.6.11].
- outhebox/laravel-translations[1.0.1, ..., 1.1.1] require brick/varexporter ^0.4.0 -> satisfiable by brick/varexporter[0.4.0].
- outhebox/laravel-translations[1.0.2, ..., 1.0.9] require brick/varexporter ^0.3.7|^0.4.0 -> satisfiable by brick/varexporter[0.3.7, 0.3.8, 0.4.0].
- brick/varexporter[0.3.7, ..., 0.4.0] require nikic/php-parser ^4.0 -> found nikic/php-parser[v4.0.0, ..., v4.19.1] but these were not loaded, likely because it conflicts with another require.
- inertiajs/inertia-laravel[v0.6.10, ..., v0.6.11] require laravel/framework ^6.0|^7.0|^8.74|^9.0|^10.0 -> found laravel/framework[v6.0.0, ..., v6.20.44, v7.0.0, ..., v7.30.6, v8.74.0, ..., v8.83.27, v9.0.0, ..., v9.52.16, v10.0.0, ..., v10.48.4] but it conflicts with your root composer.json require (^11.0).
- Root composer.json requires outhebox/laravel-translations * -> satisfiable by outhebox/laravel-translations[0.0.1, ..., 0.1.2, 1.0.0, ..., 1.1.1].
You can also try re-running composer require with an explicit version constraint, e.g. "composer require outhebox/laravel-translations:*" to figure out if any version is installable, or "composer require outhebox/laravel-translations:^2.1" if you know which you need.
`
The text was updated successfully, but these errors were encountered: