Getting "loadjs is not defined" error when adding any JS asset

Created on 8 March 2023, over 1 year ago

Problem/Motivation

Once I add a JS asset, e.g. just add:
console.log('X');
with

  • all optinons OFF
  • Just "Add additional noscript fallback" enabled

And only with JavaScript aggregation enabled at /admin/config/development/performance
(I ensured there's NO Js error, if it is turned off!)

I get the following error in the JS Console:

js_Esmr5lDkzQ0SggYIzJ_Co_NY7zDkzCDaZMTSskZot3U.js:4095 Uncaught ReferenceError: loadjs is not defined

Once I remove the JS Asset, the error is gone!

Steps to reproduce

See above.

Proposed resolution

Presumably, the module creates a situation where πŸ› Uncaught ReferenceError: loadjs is not defined after drupal core upgrade 9.5.1 Needs work occurs. So that core issue has to be solved. loadjs was introduced at πŸ“Œ Add loadjs library Fixed

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Closed: won't fix

Version

2.0

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany Anybody Porta Westfalica

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024