org.apache.sling.scripting.sightly.SightlyException: Identifier libs/granite/sightly/templates/clientlib.html cannot be correctly instantiated by the Use API<head data-sly-use.clientLib="${'libs/granite/sightly/templates/clientlib.html'}">
<meta data-sly-call="${clientLib.all @ categories='apps.clientlib_learning'}" data-sly-unwrap></meta>
<meta data-sly-call="${clientLib.js @categories='apps.clientlib_learning'}" data-sly-unwrap></meta>
<meta data-sly-call="${clientLib.css @categories='apps.clientlib_learning'}" data-sly-unwrap></meta>
</head>
what is the reason of error
Please share the complete error stack trace.
Views
Replies
Total Likes
There is an issue with your code in first line.
add '/' before libs.
example:
data-sly-use.clientLib="/libs/granite/sightly/templates/clientlib.html"