After installing the module I was getting a couple of PHP notices and a PHP warning, using Drupal 8.2.8.

Notice: Undefined index: group in Drupal\Core\Asset\AssetResolver->sort(),
Notice: Undefined index: browsers in Drupal\Core\Asset\JsCollectionRenderer->render(),
Warning: uasort(): Array was modified by the user comparison function in Drupal\Core\Asset\AssetResolver->getJsAssets()

Adding these extra lines

'group' => JS_LIBRARY,
'weight' => 0,
'browsers' => [],

to the 'pinterest_hover_js_alter' function array in 'pinterest_hover/pinterest_hover.module' seemed to fix the notices and warning.

Comments

glen-wearebwa created an issue. See original summary.

mbaynton’s picture

Thanks for the report & solution, @glen-wearebwa! Reproduced & tested your fix on a few different 8.x versions, including latest stable. I agree this is the right solution.

mbaynton’s picture

Status: Active » Fixed

Released as 8.x-1.3.

mbaynton’s picture

Status: Fixed » Closed (fixed)