Skip to content
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

TemplateBinding.js Uncaught HierarchyRequestError #688

Closed
furier opened this issue Aug 6, 2014 · 7 comments
Closed

TemplateBinding.js Uncaught HierarchyRequestError #688

furier opened this issue Aug 6, 2014 · 7 comments

Comments

@furier
Copy link

furier commented Aug 6, 2014

Uncaught HierarchyRequestError: Failed to execute 'appendChild' on 'Node': Nodes of type 
'HTML' may not be inserted inside nodes of type '#document'. TemplateBinding.js:163
(anonymous function) TemplateBinding.js:163
(anonymous function) TemplateBinding.js:167
(anonymous function) TemplateBinding.js:1254

This error occurs when I try to import a component i have made like this.

<link rel="import" href="bower_components/WebComponents/components/scheduler/ss-scheduler.html">

In the <head> tag of index.html the first script tag is

<script src="bower_components/platform/platform.js"></script>

Developing the component went just fine but when I want to use it in an AngularJS project I have, this error occured.

@addyosmani
Copy link
Member

Do you have a JSBin or a reduced test case you could post somewhere so we can take a look?

@furier
Copy link
Author

furier commented Aug 6, 2014

Hmmm... I can try and make a JSBin reduced test case.

Anyways here is the WebComponents repo with the component, and I try to use the component in this project websync.

If I can't manage to make a JSBin reduced test case, you can maybe try and clone websync and run it up and see if you get the same error? I could make a branch with the faulty changes so you could easily test it....

@furier
Copy link
Author

furier commented Aug 6, 2014

If you guys could just check out websync and checkout the branch feature/scheduler you would sit with the exact same code as me and could test it. It feel it will be hard to reproduce in a JSBin.

@furier
Copy link
Author

furier commented Aug 6, 2014

I got it working, I am not sure what caused the issue...

I had a code snippet inserting some google analytics code at the top of the head tag right above platform.js, maybe that was it... Other then removing it I don't see how any of my other few changes may have had anything else to do with it.

@furier furier closed this as completed Aug 6, 2014
@zdarovka
Copy link

zdarovka commented Dec 1, 2014

I have this same problem. Everything worked fine until I used vulcanizer on my app

@verdverm
Copy link

verdverm commented Jan 7, 2015

+1 with @zdarovka I am having the same issue now that I am vulcanizing

@fearphage
Copy link

Still having this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants