I have create a custom js file in a clientlib with category dam.gui.coral.metadataeditor. I have added the below code to my JS:
"use strict";
use(function () {
var path = currentPage.path;
});
When I open the Properties page for my asset this JS loads. But I am seeing a console error:
Uncaught ReferenceError: Use is not defined at <myjsfile.js:2>
I am not able to use the Use Api in my javascript