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

Cross domain HTML import #1489

Closed
shailesh17mar opened this issue May 6, 2015 · 4 comments
Closed

Cross domain HTML import #1489

shailesh17mar opened this issue May 6, 2015 · 4 comments

Comments

@shailesh17mar
Copy link

I am not able to import my component from a different domain. It is not able import the internal imports present in my component. Is this problem due to relative import paths or something else?
Is there any way to work it out?

@Nevraeka
Copy link

Nevraeka commented May 7, 2015

Check your console for CORS related errors. What are they?

@Nevraeka
Copy link

Nevraeka commented May 8, 2015

@shailesh17mar - did you find out what happened?

@shailesh17mar
Copy link
Author

I am getting this error in console then
Uncaught HierarchyRequestError: Failed to execute 'appendChild' on 'Node': Nodes of type 'HTML' may not be inserted inside nodes of type '#document'.

and then 79 other errors : Uncaught TypeError: Polymer is not a function

@shailesh17mar
Copy link
Author

Found out the issue. It was importing polymerjs multiple times for each component imported. Therefore, as a workaround I created a seperate elements.html file and vulcanized it and finally imported that instead of importing elements separately.

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

3 participants