New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exception: TypeError el.createShadowRoot is not a function (Safari/Edge) #6531
Comments
This is because the browsers where the error is thrown don't support native ShadowDOM. Did you reconfigure the view encapsulation? Because actually it defaults to "emulated" which doesn't rely on the native APIs. |
Sounds like you are using native shadow DOM which is only available in Chrome. |
Loading the http://webcomponents.org/polyfills/ should make it work in other browsers as well |
I am getting the same error on Firefox as well. What is the reason behind this? Is it because of following line?
|
@BaamAadmi only if you are adding "external styles" to components. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Hi, I am grooming an angular2 app for publication. The app works great in chrome and safari, but not in Safari or Edge:
Here is a snippet of the error in safari:
And similarly in Edge:
I have a question open on stackoverflow here: http://stackoverflow.com/questions/34824758/angular2-exception-typeerror-el-createshadowroot-is-not-a-function-safari-edge
Is there a shim or polymer that I need? Any help would be much appreciated!
The text was updated successfully, but these errors were encountered: