Akash
Akash

Reputation: 123

composer.json specifies dependency, but no composer.lock was found

I have added sendgrid and changed composer.json file in heroku. composer.json file contains

{
    "require": {
        "ext-mbstring": "*",
        "sendgrid/sendgrid": "2.0.5"
    }
}

on commit the file enter image description here

When I push into heroku I wiil occurs error as shown in below image

enter image description here

Upvotes: 4

Views: 3477

Answers (2)

user1221679
user1221679

Reputation: 625

I have that problem too but i don't want to change my local php environment configuration, so i need to use composer update --ignore-platform-reqs . Otherwise i would need to have same extensions locally as the ones i have in remote heroku.

Upvotes: 1

Akash
Akash

Reputation: 123

After installed composer and restart the computer I have used the composer update command and then it works fine and error solved

Upvotes: 0

Related Questions