When updating to 2.0.2, the following error is thrown:
[Drupal\Core\Extension\Exception\UnknownExtensionTypeException]
Extension type library is unknown.
This is due to line 50 in file_browser_requirements of file_browser.install
if (\Drupal::moduleHandler()->moduleExists('libraries')) {
$imagesloaded_path = \Drupal::service('extension.path.resolver')->getPath('library', 'imagesloaded') . '/imagesloaded.pkgd.min.js';
$masonry_path = \Drupal::service('extension.path.resolver')->getPath('library', 'masonry') . '/dist/masonry.pkgd.min.js';
}
Specifically, the getPath('library' call
Comments
Comment #4
rcodinaJust created MR to fix the issue. Remember to install library dependencies using Wikimedia Composer Merge Plugin.
Comment #5
d.fisher commentedThank you for this. Looks good to me. Marking RTBC.
Comment #6
caspervoogt commentedthat solved it for me
Comment #7
rcodinaI've done some changes to avoid duplicated code.
Comment #8
d.fisher commentedThis looks good to me. @caspervoogt can you test the latest changes in MR!14 as well and if we both see it solving the problem I'm happy to get this one merged and released.
Comment #9
d.fisher commentedMarking RTBC based on my testing and no response.
Comment #11
d.fisher commentedMerged to 2.x and will be in next tagged release.
Comment #13
dhansen commentedReopening. The changes fixed this issue in the install file, but not in the .module file where the libraries are actually called for use.
Comment #15
dhansen commentedThe MR is working for me, but would like someone else with Libraries API installed to give it a try.
Comment #16
d.fisher commentedComment #17
d.fisher commentedTested and looks good. Merging now.
Comment #19
d.fisher commented