Package is not being installed

Created on 20 February 2025, 3 days ago

The package Html2Text\Html2Text; is not being installed properly.
In the module brevo_mailer it require Html2Text\Html2Text;

    "require": {
        "getbrevo/brevo-php": "~2.0",
        "nyholm/psr7": "~1.2",
        "html2text/html2text": "^4.0.1"
    },

But when doing composer require 'drupal/brevo:^1.0' that dependency is not being installed, even after enabling the module brevo_mailer on Drupal.

When trying to send a test email you get the following error:

Error: Class "Html2Text\Html2Text" not found in Drupal\brevo_mailer\Plugin\Mail\BrevoMail->buildMessage() (line 257 of /var/www/webroot/webcms/releases/22-05-2023-143225/web/modules/contrib/brevo/modules/brevo_mailer/src/Plugin/Mail/BrevoMail.php).

Looking at the code unless I manually run composer require html2text/html2text:^4.0 the class is not properly loaded.
Is there an extra step required to install this plugin?

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇪🇸Spain uridrupal

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024