Expand my Community achievements bar.

SOLVED

JS Console error on Minification

Avatar

Level 2

When try to Minify files under clientlibs using JsProcessor, facing some Console errors and the files are not minified too.

 

Console errors

Uncaught ReferenceError: $jscomp is not defined

because its MIME type ('') is not executable, and strict MIME type checking is enabled.

 

USING AEM 6.4

jsProcessor="[default:none,min:gcc;languageIn=ECMASCRIPT_2015;compilationLevel=whitespace]"

 

 

 

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor
3 Replies

Avatar

Employee Advisor

I would recommend you to use online gcc compiler and check if there are some issues with the js file.

Avatar

Correct answer by
Community Advisor

Avatar

Level 1

I have the same issue since Servicepack 6.5.12 with a clientlib which is configured

jsProcessor="[default:none,min:gcc;languageIn=STABLE;compilationLevel=whitespace]"


. Apparently compilationlevel=whitespace is the issue here. For some reason the definition of jscomp is missing. Workaround is to use compilationLevel=simple.