Open haoyinag opened 2 years ago
@okonet sorry asking for help : the reason seems like from here
if (nativeParent === void 0) {
nativeParent = this.element.sheet // this will be null
// if(this.element.sheet){
// nativeParent = this.element.sheet
// ___cacheElement = this.element.sheet
// }else{
// nativeParent = ___cacheElement;
// }
}
@haoyinag could you reproduce it on a repo or on a sandbox link?
The same problem here. This error occurs when in stylesheet are empty style blocs.
Its generated by MUI v4.
It works with this code:
_proto.insertRules = function insertRules(rules, nativeParent) {
for (var i = 0; i < rules.index.length; i++) {
if (nativeParent !== void 0 || this.element.sheet !== void 0)
this.insertRule(rules.index[i], i, nativeParent);
}
}
Expected behavior: i can switch micro apps as fine
Describe the bug: when i switch back to a micro app , get error msg like :
Versions (please complete the following information):