JS libraries need to state dependency on core/drupal library
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3579608. --> Reported by: [segovia94](https://www.drupal.org/user/780142) Related to !1324 >>> <p>The new <code>/assets/js/ai_global.js</code> uses both the <code>Drupal</code> and <code>Once</code> libraries, but the <code>ai.libraries.yml</code> file doesn't state the dependency on <code>core/drupal</code>. This causes javascript <code>Uncaught ReferenceError: Drupal is not defined</code> errors when the page loads for anonymous uses on sites that may not already have loaded the library.</p> <p>It is likely that other libraries have this same issue and should be updated.</p>
issue