dependencies: - core/jquery - core/drupal
mymodule is my module name).
How do I ensure Drupal "sees" these new dependencies?
For example, can I clear the cache,
drush cr ?
Or is there another drush command to run or something else to do?
When does Drupal read the
info.yml file? When module enabled - yes - but what other times?
I would prefer a command to get it to read that file rather than uninstall my module and reenable my module as this could be inconvenient with regard to config/content needing to be re-setup.
I'm working on solving a problem where anonymous users see
Uncaught ReferenceError: Drupal is not defined in console, based on a solution that adds the dependencies I mentioned above: Anonymous Users See Uncaught ReferenceError: Drupal is not defined In console.
Potentially related: jQuery not Loading for “Anonymous” Users
-? There's only one space, right?
-or do you mean there needs to be an empty line between the 2 dependenices, @leymannx? (thank you for taking the time to look, please let me know your thoughts)
-there seems to be one space too few. There need to be two spaces before each
-. Simply look in other modules in core to compare.
drupal:file- should I do the same, instead of the slash?
install(called while the module is installed),
runtime(called during regular use of the website),
update(called while the update.php is being executed). I am not sure but I guess running an update or cron might read the requirements in .info files.