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

JS Console error on Minification

  • February 21, 2020
  • 3 replies
  • 4516 views

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.
Best answer by SureshDhulipudi

Is this issue resolved?

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/minification/qaq-p/354801 is this same?

3 replies

Adobe Employee
February 21, 2020

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

SureshDhulipudi
Community Advisor
SureshDhulipudiCommunity AdvisorAccepted solution
Community Advisor
October 28, 2020
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.