Module is not compatible with Drupal 8

Created on 9 October 2024, about 1 month ago

Problem/Motivation

From release version 1.4, module is not compatible with Drupal 8.
What's the problem there, you might ask... The problem is in the fact that core/once library does not exist in Drupal 8 and it was the change made in the 1.4.

Steps to reproduce

  • Install or use a website with Drupal 8.9.x
  • Update module to version 1.4
  • Try to open any modal to select files where this module is used and you will get an error in the console saying Uncaught ReferenceError: once is not defined at Object.attach (file_browser.view.js?v=8.9.20:51:18)

Proposed resolution

Drop support for Drupal 8 so people don't get stuck.

🐛 Bug report
Status

Active

Version

1.4

Component

Code

Created by

🇷🇸Serbia peraz

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

Comments & Activities

  • Issue created by @peraz
  • 🇮🇳India zartab farooquee

    The core issue is that version 8.x-1.4 of the File Entity Browser module is using a library (once) that was introduced in Drupal 9 and is not available in Drupal 8.9.x. To resolve the issue, you can either downgrade to version 1.3 of the module, manually add the once library. Upgrading to Drupal 9 is another long-term solution that will avoid these kinds of problems in the future.

  • 🇷🇸Serbia peraz

    I am avare of all that, but module should drop support for Drupal 8 if it doesn't work with it.

Production build 0.71.5 2024