- Issue created by @Haris Khan Jadoon
- 🇮🇳India ravi.joshi53
Issue
The problem persist with all of the newer versions such as fitvids 2.1.0, fitvids 2.0.0, fitvids 2.0.x-dev, fitvids 8.x-1.1. It can easily be reproduced just by installation saycomposer require 'drupal/fitvids:^2.1'
or other.Workaround
As a workaround, I made it work by changing$path
inside fitvids.install file from$path = DRUPAL_ROOT . '/libraries/fitvids/jquery.fitvids.js';
to$path = DRUPAL_ROOT . '/modules/contrib/fitvids/js/jquery.fitvids.js';
. Also enablejs/jquery.fitvids.js: {}
and disable/libraries/fitvids/jquery.fitvids.js: {}
insidefitvids.libraries.yml
file. The error is gone but haven't tested it yet. I need to create a page containing video to test it.PS
I believe that there should be a better way to set$path
, i.e.,$path = DRUPAL_ROOT . '/modules/contrib/fitvids/js/jquery.fitvids.js';
such as$path = libraries_get_path('fitvids') . '/js/jquery.fitvids.js';
. This needs to be tested first.