I'm sorry, you are right.
there is only a file in drupal/core/assets/vendor/shepherd/shepherd.min.js that begins with 'use strict'.
I also noticed that loadjs.min.js is not in Unix format but in Windows format, which is different from all the other js being used. Changing it will not affect the error that is displayed, nevertheless.
Dear anybody,
yes, I grep on my code, and i found all these files having the "use script" at the file level:
drupal/core/assets/vendor/jquery.ui/ui/data.js:"use strict";
drupal/core/assets/vendor/jquery.ui/ui/disable-selection.js:"use strict";
drupal/core/assets/vendor/jquery.ui/ui/focusable.js:"use strict";
drupal/core/assets/vendor/jquery.ui/ui/form-reset-mixin.js:"use strict";
drupal/core/assets/vendor/jquery.ui/ui/form.js:"use strict";
drupal/core/assets/vendor/jquery.ui/ui/ie.js:"use strict";
drupal/core/assets/vendor/jquery.ui/ui/jquery-patch.js:"use strict";
drupal/core/assets/vendor/jquery.ui/ui/jquery-patch.js:"use strict";
drupal/core/assets/vendor/jquery.ui/ui/keycode.js:"use strict";
drupal/core/assets/vendor/jquery.ui/ui/labels.js:"use strict";
drupal/core/assets/vendor/jquery.ui/ui/plugin.js:"use strict";
drupal/core/assets/vendor/jquery.ui/ui/safe-active-element.js:"use strict";
drupal/core/assets/vendor/jquery.ui/ui/safe-blur.js:"use strict";
drupal/core/assets/vendor/jquery.ui/ui/scroll-parent.js:"use strict";
drupal/core/assets/vendor/jquery.ui/ui/unique-id.js:"use strict";
drupal/core/assets/vendor/jquery.ui/ui/version.js:"use strict";
drupal/core/assets/vendor/jquery.ui/ui/widget.js:"use strict";
drupal/core/assets/vendor/jquery.ui/ui/widgets/autocomplete.js:"use strict";
drupal/core/assets/vendor/jquery.ui/ui/widgets/button.js:"use strict";
drupal/core/assets/vendor/jquery.ui/ui/widgets/checkboxradio.js:"use strict";
drupal/core/assets/vendor/jquery.ui/ui/widgets/controlgroup.js:"use strict";
drupal/core/assets/vendor/jquery.ui/ui/widgets/dialog.js:"use strict";
drupal/core/assets/vendor/jquery.ui/ui/widgets/draggable.js:"use strict";
drupal/core/assets/vendor/jquery.ui/ui/widgets/menu.js:"use strict";
drupal/core/assets/vendor/jquery.ui/ui/widgets/mouse.js:"use strict";
drupal/core/assets/vendor/jquery.ui/ui/widgets/resizable.js:"use strict";
drupal/core/assets/vendor/jquery/jquery.js:"use strict";
drupal/core/scripts/js/ckeditor5-check-plugins.js:"use strict";
drupal/core/scripts/js/ckeditor5-check-plugins.js:"use strict";
Do I have to modify all of them, moving the "use script" at functional level? It doesn't seem to be the best solution..
Dear anybody ,
I grep in my code, and I noticed I have many js with "use strict" at file level, like:
drupal/core/assets/vendor/jquery.ui/ui/data.js:"use strict";
drupal/core/assets/vendor/jquery.ui/ui/disable-selection.js:"use strict";
drupal/core/assets/vendor/jquery.ui/ui/focusable.js:"use strict";
drupal/core/assets/vendor/jquery.ui/ui/form-reset-mixin.js:"use strict";
drupal/core/assets/vendor/jquery.ui/ui/form.js:"use strict";
drupal/core/assets/vendor/jquery.ui/ui/ie.js:"use strict";
drupal/core/assets/vendor/jquery.ui/ui/jquery-patch.js:"use strict";
drupal/core/assets/vendor/jquery.ui/ui/jquery-patch.js:"use strict";
drupal/core/assets/vendor/jquery.ui/ui/keycode.js:"use strict";
drupal/core/assets/vendor/jquery.ui/ui/labels.js:"use strict";
drupal/core/assets/vendor/jquery.ui/ui/plugin.js:"use strict";
drupal/core/assets/vendor/jquery.ui/ui/safe-active-element.js:"use strict";
drupal/core/assets/vendor/jquery.ui/ui/safe-blur.js:"use strict";
drupal/core/assets/vendor/jquery.ui/ui/scroll-parent.js:"use strict";
drupal/core/assets/vendor/jquery.ui/ui/unique-id.js:"use strict";
drupal/core/assets/vendor/jquery.ui/ui/version.js:"use strict";
drupal/core/assets/vendor/jquery.ui/ui/widget.js:"use strict";
drupal/core/assets/vendor/jquery.ui/ui/widgets/autocomplete.js:"use strict";
drupal/core/assets/vendor/jquery.ui/ui/widgets/button.js:"use strict";
drupal/core/assets/vendor/jquery.ui/ui/widgets/checkboxradio.js:"use strict";
drupal/core/assets/vendor/jquery.ui/ui/widgets/controlgroup.js:"use strict";
drupal/core/assets/vendor/jquery.ui/ui/widgets/dialog.js:"use strict";
drupal/core/assets/vendor/jquery.ui/ui/widgets/draggable.js:"use strict";
drupal/core/assets/vendor/jquery.ui/ui/widgets/menu.js:"use strict";
drupal/core/assets/vendor/jquery.ui/ui/widgets/mouse.js:"use strict";
drupal/core/assets/vendor/jquery.ui/ui/widgets/resizable.js:"use strict";
drupal/core/assets/vendor/jquery/jquery.js:"use strict";
drupal/core/scripts/js/ckeditor5-check-plugins.js:"use strict";
drupal/core/scripts/js/ckeditor5-check-plugins.js:"use strict";
Do you think I should proceed with moving all the "use strict" at the "functional level" as suggested? It doesn't seem to me to be the best solution.
N.B.: disabling the aggregation I don't receive the error, but seems like some components work differently as they should.
Hi there,
I was updating Drupal-recommended from 10.2.0 to 10.3.1. Everything went smooth, in exception for the "loadjs is not defined".
I followed what you guys did here, but the patch is not being installed (load_js-define_variable-3336143-43.patch) #43.
I also tried to modify the loadjs.min.js file by myself, adding "var" as per the patch, but I still receive the error.
Is there something I am missing?