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 '<' 


Read more...

Product

SAP Commerce Cloud 2205 ; SAP Commerce Cloud 2211

Keywords

wro, wro4j, wildcard, $ is not defined, Unexpected token '<', js, missed , KBA , CEC-COM-CPS-WEB , Store frontend, Web CMS, Accelerators , 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.