Hello,
Having an issue with an older component that is not loading the global 'use' keyword.
<div class="band-xxx">
<sly data-sly-resource="${'par' @ resourceType='xxx/components/sightly/xxxx/xxxx/components/parsys'}"/>
</div>
where parsys.js under component/parsys is defined as ..
use(["/libs/wcm/foundation/components/parsys/parsys.js", "customScriphere.js"], function (parsysComponent, filter) { ...
Looks like the global 'use' function is not available for whatever reason. i am seeing the following error message in the logs. i have other similar components following the same pattern but this one is the only one with this issue. any help would be appreciated.
Caused by: jdk.nashorn.internal.runtime.ECMAException: ReferenceError: "use" is not defined
at jdk.scripting.nashorn/jdk.nashorn.internal.runtime.ECMAErrors.error(ECMAErrors.java:57)
at jdk.scripting.nashorn/jdk.nashorn.internal.runtime.ECMAErrors.referenceError(ECMAErrors.java:319)
at jdk.scripting.nashorn/jdk.nashorn.internal.runtime.ECMAErrors.referenceError(ECMAErrors.java:291)
at jdk.scripting.nashorn/jdk.nashorn.internal.objects.Global.__noSuchProperty__(Global.java:1616)
at jdk.scripting.nashorn.scripts/jdk.nashorn.internal.scripts.Script$Recompilation$1$\^eval\_/0x0000000801b13440.:program(<eval>:3)
at jdk.scripting.nashorn/jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:655)
at jdk.scripting.nashorn/jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:513)
at jdk.scripting.nashorn/jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:527)
at jdk.scripting.nashorn/jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:428)
at jdk.scripting.nashorn/jdk.nashorn.api.scripting.NashornScriptEngine$3.eval(NashornScriptEngine.java:521)
Thanks