WebComponents is not Defined

196 views
Skip to first unread message

Romer Ventura

unread,
Oct 16, 2014, 6:03:48 PM10/16/14
to polym...@googlegroups.com
Hello,

I am setting up to use Polymer and i am getting the following error:
Uncaught ReferenceError: WebComponents is not defined  -- polymer.concat.js: 10443

All i am doing is following a tutorial to include the icon. Here is my code:
<!DOCTYPE HTML>
<html>
    <head>
        <meta charset="UTF-8">

        <title>KeShop</title>
        
        <script src=<?php echo BaseUrl.'external/polymer/components/platform/platform.js';?>></script>
        
        <link rel="import" href=<?php echo BaseUrl.'external/polymer/components/core-icons/core-icons.html'?>>

    </head>
    
    <body unresolved>
        <core-icon icon="android"></core-icon>
    </body>
</html>


I can see all other polymer files loading in my developer tools, but not sure why i am getting the error

Thanks.

Rob Dodson

unread,
Oct 16, 2014, 7:34:03 PM10/16/14
to Romer Ventura, polymer-dev
are you using bower to get Polymer? or did you grab it all from github?

if you used bower, which version of polymer did you grab?

Follow Polymer on Google+: plus.google.com/107187849809354688692
---
You received this message because you are subscribed to the Google Groups "Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to polymer-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/8198683d-83a8-4282-8d09-a627a434a674%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ry Walker

unread,
Oct 16, 2014, 8:00:10 PM10/16/14
to Rob Dodson, Romer Ventura, polymer-dev
I saw this too when choosing master in bower yesterday - choosing 0.4.2 resolved it.

-Ry

Rob Dodson

unread,
Oct 16, 2014, 8:06:15 PM10/16/14
to Ry Walker, Romer Ventura, polymer-dev
Yes, we're making some changes to platform.js. There's a blog post that will announce it any moment. The master branch of Polymer is not guaranteed to be stable so it's always best to rely on a tag

Romer Ventura

unread,
Oct 17, 2014, 10:01:25 AM10/17/14
to polym...@googlegroups.com, r...@differential.io, rom...@gmail.com
I downloaded the .zip option from the website. ( https://www.polymer-project.org/docs/start/getting-the-code.html )

Extracted them into the path shown in the code posted and got the error.

Should i just download it from github?

Romer Ventura

unread,
Oct 17, 2014, 10:42:17 AM10/17/14
to polym...@googlegroups.com
Installing with bower fixes the issues.

Looks like the "Install From Zip" section in the polymer website is outdated as what it is downloaded, does not match what the page says, not does its contents.

Thanks for the help

Rob Dodson

unread,
Oct 17, 2014, 4:48:50 PM10/17/14
to Romer Ventura, polymer-dev
Hm, maybe try again today. We're moving platform.js over to webcomponentsjs  and there was some weirdness yesterday. It should be fixed up now. platform.js will now issue a deprecation warning. we'll be making the change over when the 0.5.0 tag hits

Follow Polymer on Google+: plus.google.com/107187849809354688692

---
You received this message because you are subscribed to the Google Groups "Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to polymer-dev...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages