SAP Knowledge Base Article - Preview

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

Symptom

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

<js>/_ui/responsive/common/js/cms/*.js</js>

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.


Read more...

Product

SAP Commerce Cloud 2205 ; SAP Commerce Cloud 2211

Keywords

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.