Problem/Motivation

In the latest version of the mmenu library the JS file "mmenu.polyfills.js" is no longer included. It was removed in the following commit: https://github.com/FrDH/mmenu-js/commit/3c6dd43bdede6c2be53a29ed8f68ca81...

This causes the following warning on the Drupal site:

Warning: file_get_contents(libraries/mmenu/dist/mmenu.polyfills.js): failed to open stream: No such file or directory in Drupal\Core\Asset\JsOptimizer->optimize() (line 25 of core/lib/Drupal/Core/Asset/JsOptimizer.php).

Proposed resolution

Remove the reference to "mmenu.polyfills.js" in responsive_menu.libraries.yml.

Remaining tasks

  • Review
  • Commit

User interface changes

None.

API changes

None.

Data model changes

None.

Patch will follow.

Comments

MegaChriz created an issue. See original summary.

megachriz’s picture

Assigned: megachriz » Unassigned
Status: Active » Needs review
StatusFileSize
new396 bytes
jeeba’s picture

Hi! I got the same problem. I applied the patch manually and it works!

  • tanc committed aa13b19 on 4.0.x authored by MegaChriz
    Issue #3111949 by MegaChriz: Remove reference to mmenu.polyfills.js as...
tanc’s picture

Version: 8.x-3.x-dev » 4.0.x-dev
Status: Needs review » Fixed

Excellent, thank you for the patch.

tanc’s picture

Version: 4.0.x-dev » 7.x-3.x-dev
Status: Fixed » Needs work
StatusFileSize
new380 bytes

Re-opening as this is also an issue with 7.x-3.x version.

  • tanc committed d143899 on 7.x-3.x
    Issue #3111949 by tanc: Remove reference to mmenu.polyfills.js, since it...
tanc’s picture

Status: Needs work » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.