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
Comment #2
mbayntonThanks 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.
Comment #4
mbayntonReleased as 8.x-1.3.
Comment #5
mbaynton