xperseguers / t3ext-fal-protect

This extension protects everything within fileadmin/ based on associated file restrictions.
https://extensions.typo3.org/extension/fal_protect
GNU General Public License v2.0
11 stars 7 forks source link

RequireJS module is not loaded dynamically #53

Closed xperseguers closed 1 year ago

xperseguers commented 1 year ago

While working on the compatbility with TYPO3 v12, (branch feature/TYPO3v12), the first problem I see is that the RequireJS module for "editing a folder" is not loaded dynamically:

  1. Click on a folder
  2. Click on Folder permissions: image

It fails in the console with:

TypeError: Failed to resolve module specifier 'TYPO3/CMS/FalProtect/ContextMenuActions.js'

What's strange is that somehow dynamic loading worked in former versions.

Method to check: \Causal\FalProtect\ContextMenu\ItemProviders\FileProvider::getAdditionalAttributes

xperseguers commented 1 year ago

Info gathered from Slack: https://docs.typo3.org/m/typo3/reference-coreapi/12.4/en-us/ApiOverview/Backend/JavaScript/ES6/Index.html#requirejs-migration

xperseguers commented 1 year ago

Registration seems OK:

image

but:

image