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

"deliverDeclarations Platform is not a function" error loading polymer.js #391

Closed
ebidel opened this issue Jan 10, 2014 · 2 comments
Closed

Comments

@ebidel
Copy link
Contributor

ebidel commented Jan 10, 2014

screen shot 2014-01-10 at 11 11 54 am

The following setup should reproduce the error:

index.html:

<script src="/platform.js"></script>
<link rel="import" href="/elements/vulcanized.html">

vulcanized.html:

<script src="/polymer.js"></script>
<polymer-element name="...">
 ....

Workaround

Moving the polymer.html import to the main document (and excluding it from vulcanize) clears up the error.

index.html:

<script src="/platform.js"></script>
<link rel="import" href="/polymer.html">
<link rel="import" href="/elements/vulcanized.html">

vulcanized.html:

<polymer-element name="...">
 ....
@ebidel
Copy link
Contributor Author

ebidel commented Jan 10, 2014

After more experimenting, switching the polymer.html import to <script src="polymer.js"></script> in the main document causes the error.

@ebidel
Copy link
Contributor Author

ebidel commented Jan 10, 2014

@azakus and I worked through this. It's another gnarly case of using Vulcanize and paths not getting de-duped properly.

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

1 participant