snowfire / Beautymail

Send beautiful HTML emails with Laravel
1.24k stars 207 forks source link

Laravel 5.8 Update Error #120

Closed RyanPaiva56 closed 4 years ago

RyanPaiva56 commented 4 years ago

I'm on the latest version of Laravel 5.8. I get this on running composer update. It doesnt help to downgrade versions either to an older commit. Any assistance would be greatly appreciated.

Writing lock file Generating optimized autoload files ocramius/package-versions: Generating version class... ocramius/package-versions: ...done generating version class

Illuminate\Foundation\ComposerScripts::postAutoloadDump @php artisan package:discover --ansi

In CssInlinerPlugin.php line 18:

Call to undefined method Pelago\Emogrifier::disableInvisibleNodeRemoval()

Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1

I tried all of these:

"snowfire/beautymail": "dev-master",

Then this:

"snowfire/beautymail": "dev-master", "pelago/emogrifier": "2.2.0",

Then this:

"snowfire/beautymail": "dev-master#ffd8b385132c28f2428b76d0cc7bfe5565386485", "pelago/emogrifier": "2.2.0",

None work.

emilsundberg commented 4 years ago

I’ll release a fix for this shortly. Please use the latest tagged release instead of dev-master to fix this issue right now

RyanPaiva56 commented 4 years ago

How do I do that? Setting the above in composer didn't work.

emilsundberg commented 4 years ago

Set a version on composer.json like this:

"snowfire/beautymail": "^1.0"

This issue has now been resolved with 942f8584135290a675944ed0d5c0e13c5e84031e