-
-
Notifications
You must be signed in to change notification settings - Fork 22
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
Installation fails at step 2 (Requiire Electrik via composer) #37
Comments
Same issue |
Hi Apologies for late reply. I was not available. It seems like there is a version conflict. Please make sure that you are using Laravel 9. Upgrading Electrik for L10 didn't work and broke a lot of things. If you are using L11, then try installing the dev version ( 3.x-dev ). It should work. I am currently working on 3.x branch and will release a version soon. |
Hello @neerajsohal !
It seems that mpociot/teamwork dev-l11-compatibility branch does not exist, any temporary solution or way to install it? |
I see. Apologies for this confusion. The
"repositories": [
{
"type": "path",
"url": "/Users/neerajsohal/lab/electrik/electrik",
"options": {
"symlink": true
}
},
{
"type": "vcs",
"url": "https://github.com/laravel-shift/teamwork.git"
}
],
Thank you for pointing this out. I will add it to the project README as well. I hope this helps. Cheers! |
For everyone's reference, below is the composer.json from one of the latest Laravel 11 with Electrik project that we are working on:
{
"name": "laravel/laravel",
"type": "project",
"description": "The skeleton application for the Laravel framework.",
"keywords": ["laravel", "framework"],
"license": "MIT",
"require": {
"php": "^8.2",
"electrik/electrik": "3.x-dev",
"laravel/framework": "^11.0",
"laravel/socialite": "^5.14",
"laravel/tinker": "^2.9",
"shopify/shopify-api": "^5.5",
"socialiteproviders/shopify": "^4.1"
},
"require-dev": {
"fakerphp/faker": "^1.23",
"laravel/pint": "^1.13",
"laravel/sail": "^1.26",
"mockery/mockery": "^1.6",
"nunomaduro/collision": "^8.0",
"phpunit/phpunit": "^11.0.1",
"spatie/laravel-ignition": "^2.4"
},
"autoload": {
"psr-4": {
"App\\": "app/",
"Database\\Factories\\": "database/factories/",
"Database\\Seeders\\": "database/seeders/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"repositories": [
{
"type": "path",
"url": "/Users/neerajsohal/lab/electrik/electrik",
"options": {
"symlink": true
}
},
{
"type": "vcs",
"url": "https://github.com/laravel-shift/teamwork.git"
}
],
"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
} please refer to the below
{
"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.9",
"laravel/tinker": "^2.9",
"electrik/electrik":"3.x-dev"
},
"require-dev": {
"fakerphp/faker": "^1.23",
"laravel/pint": "^1.13",
"laravel/sail": "^1.26",
"mockery/mockery": "^1.6",
"nunomaduro/collision": "^8.0",
"phpunit/phpunit": "^11.0.1"
},
"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
}
|
Getting error |
Hi, Thank you for bringing this too notice. Teamwork has released their latest version. I have updated the compooser.json to reflect this. Below is how it should look: {
"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.9",
"laravel/tinker": "^2.9",
"electrik/electrik":"3.x-dev"
},
"require-dev": {
"fakerphp/faker": "^1.23",
"laravel/pint": "^1.13",
"laravel/sail": "^1.26",
"mockery/mockery": "^1.6",
"nunomaduro/collision": "^8.0",
"phpunit/phpunit": "^11.0.1"
},
"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
}
|
In step 2 of the setup process I get the following error:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- electrik/electrik[0.0.1, ..., 0.0.13, 1.0.0] require illuminate/support ^9.31 -> found illuminate/support[v9.31.0, ..., v9.52.16] but these were not loaded, likely because it conflicts with another require.
- electrik/electrik[2.0.0, ..., 2.0.5] require illuminate/support ^10.10 -> found illuminate/support[v10.10.0, ..., v10.48.10] but these were not loaded, likely because it conflicts with another require.
- Root composer.json requires electrik/electrik * -> satisfiable by electrik/electrik[0.0.1, ..., 0.0.13, 1.0.0, 2.0.0, 2.0.5].
You can also try re-running composer require with an explicit version constraint, e.g. "composer require electrik/electrik:*" to figure out if any version is installable, or "composer require electrik/electrik:^2.1" if you know which you need.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
Any idea how to solve this?
The text was updated successfully, but these errors were encountered: