For defining the “w” parameter I get the following:
lightning-ui-components.min.mjs:90 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading ‘clearStyleCache’)
Error is in the marked line in this code, which is from the withThemeStyles class:
export default function withThemeStyles(Base, mixinStyle = {}) {
…
set style(v) {
if (Object.prototype.toString.call(v) !== ‘[object Object]’) {
context.error(‘style must be an object’);
return;
}
this._componentLevelStyle = v;
this._styleManager.clearStyleCache(); //Error here
this._styleManager.update();
}