LightningUICompoents undefined StyleCache props

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 Object]’) {
context.error(‘style must be an object’);
this._componentLevelStyle = v;
this._styleManager.clearStyleCache(); //Error here