JS Console error on Minification | Community
Skip to main content
Level 2
February 21, 2020
Solved

JS Console error on Minification

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]"

 

 

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
SureshDhulipudi
SureshDhulipudiAccepted solution
New Participant
October 28, 2020

3 replies

New Participant
May 25, 2022

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.

Translate
SureshDhulipudi
SureshDhulipudiAccepted solution
New Participant
October 28, 2020
Employee
February 21, 2020

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

Translate