SAP Knowledge Base Article - Preview

3292640 - JS source files are missed when wro4j configuration uses wildcard file name


When js files are included via wildcard file name in wro.xml configuration, they will be missed by wro4j compression.


Under some scenarios, it can lead UI broken due to all_responsive.js/addons_responsive.js may be generated without dependency js files and/or unexpected HTML content included in the compressed js. Below error may be observed in browser console log.

Uncaught ReferenceError: $ is not defined

Uncaught SyntaxError: Unexpected token '<' 

Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental.



SAP Commerce Cloud 2205 ; SAP Commerce Cloud 2211


wro, wro4j, wildcard, $ is not defined, Unexpected token '<', js, missed , KBA , CEC-SCC-COM-BCA-COR , Core Accelerator , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.