When trying to inject the Modal Component from antd design to Gmail page with a chrome extension, I have this error which broke the attempt.
But if I edit the built output to wrap a try / catch around the line of code that create the problem then everything go smoothly
try {
styleNode.innerHTML = css;
} catch {
}
I am confused, this is preventing me from making my chrome extension work on Gmail.