getsentry / sentry-laravel

The official Laravel SDK for Sentry (sentry.io)
https://sentry.io
MIT License
1.25k stars 189 forks source link

Composer error on Laravel 8.40 #502

Closed victorelec14 closed 3 years ago

victorelec14 commented 3 years ago

Steps to Reproduce

  1. composer require sentry/sentry-laravel

Actual Result

Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - sentry/sentry-laravel dev-master requires sentry/sdk ^3.1 -> found sentry/sdk[3.1.0] but the package is fixed to 2.2.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - sentry/sentry-laravel 2.7.0 requires sentry/sentry ^3.3 -> found sentry/sentry[dev-master, 3.3.0, 3.3.1, 3.3.x-dev (alias of dev-master)] but the package is fixed to 2.5.2 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - sentry/sentry-laravel 2.x-dev is an alias of sentry/sentry-laravel dev-master and thus requires it to be installed too.
    - Root composer.json requires sentry/sentry-laravel ^2.7 -> satisfiable by sentry/sentry-laravel[2.7.0, 2.x-dev (alias of dev-master)].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

Composer.json:

"require": {
        "php": "^7.3|^8.0",
        "fideloper/proxy": "^4.4",
        "fruitcake/laravel-cors": "^2.0",
        "guzzlehttp/guzzle": "^7.0.1",
        "laravel/framework": "^8.40",
        "laravel/jetstream": "^2.3",
        "laravel/sanctum": "^2.6",
        "laravel/tinker": "^2.5",
        "livewire/livewire": "^2.0",
        "yajra/laravel-datatables-buttons": "^4.13",
        "yajra/laravel-datatables-html": "^4.37",
        "yajra/laravel-datatables-oracle": "^9.18",
        "doctrine/dbal": "^2.12.1"
    },
    "require-dev": {
        "barryvdh/laravel-debugbar": "^3.5",
        "facade/ignition": "^2.5",
        "fakerphp/faker": "^1.9.1",
        "laravel/sail": "^1.0.1",
        "mockery/mockery": "^1.4.2",
        "nunomaduro/collision": "^5.0",
        "phpunit/phpunit": "^9.3.3"
    },
bastinald commented 3 years ago

Can you tag and push the fixes already? It's been 2 weeks now and I still have this issue and am unable to use sentry with any of my up-to-date Laravel projects.

stayallive commented 3 years ago

The release was tagged, so you should no longer have any issues, if so please share the exact error you are getting.