I have created this module: https://github.com/vih/vih_pwi. It declares hook_libraries_info() like this: https://github.com/vih/vih_pwi/blob/7.x-1.x/vih_pwi.module#L27

However, when using it on a page, it tries to fetch the js from /sites/all/modules/vih_pwi/js/ directory instead of the libraries directory. This can be seen on https://vies.dk/billeder

I have enabled AdvAgg. I do not know whether that has anything to do with anything.

Comments

lsolesen’s picture

Issue summary: View changes
lsolesen’s picture

Just to fix the production site, I copied the js code to the module directory. But that seems a little odd :)

tstoeckler’s picture

Category: Bug report » Support request
Status: Active » Fixed

That library definition uses "integration files" which are always loaded from the module itself. The library files itself should not.

Status: Fixed » Closed (fixed)

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