Enonic version: 7.7.3
OS: Windows
Trying to use the lib-menu;
following this doc https://github.com/enonic/lib-menu, but attempting to use
let menuItems = libs.menu.getMenuTree(2);
in a Page controller (.js) returns
Caused by: jdk.nashorn.internal.runtime.ECMAException: TypeError: Cannot read property “ariaLabel” from undefined
Attempt with
let menuItems = libs.menu.getMenuTree(2, { returnContent = true });
returns
Caused by: jdk.nashorn.internal.runtime.ECMAException: ReferenceError: “returnContent” is not defined
Its like the lib is not there - I’ve manually stopped, built and deployed after adding the depenency/code.
Or rather, it finds the getMenuTree(), but not the internal things in there like “ariaLabel” and “returnContent”