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

Error - Uncaught Possible attempt to load Polymer twice #464

Closed
juliankrispel opened this issue Apr 3, 2014 · 2 comments
Closed

Error - Uncaught Possible attempt to load Polymer twice #464

juliankrispel opened this issue Apr 3, 2014 · 2 comments

Comments

@juliankrispel
Copy link

When I'm loading more than one polymer element on a page dom.js throws 'Uncaught Possible attempt to load Polymer twice'.

I'm using chrome and have the htmlimports polyfill included, any idea why this is ocurring? Am I missing something?

@juliankrispel
Copy link
Author

I found out the cause of the issue. Basically, I'm using bower link to develop my components in isolation, yet use them just like any other bower package. This means that each of these packages uses their own polymer dependency. Is there a workaround for this other than just developing everything in one large repository?

@robdodson
Copy link
Contributor

You should only need to include platform.js to work with Polymer. Are you also including the htmlimports polyfill?

Inside of your polymer element the path to polymer.html should look like this:

<link rel="import" href="../polymer/polymer.html">

That path assumes that the polymer directory is a sibling of your element's directory in bower_components.

@sorvell sorvell closed this as completed Aug 12, 2014
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