I have an angular2 app that works great in Chrome and Firefox, but in Safari I get this error:
TypeError el.createShadowRoot is not a function
if you are facing this issue in simple HTML file then below line of code can be helpful
element.attachShadow({mode: 'open'})