I find the mix of `src="bower_compoments/..."` and `href=" http://localhost:8000/bower_components/..."` a bit odd. I'd recommend sticking with the former.
Like Rubén says, better to use Polymer 1.0+ version (`<polymer-element>` is Polymer 0.5 which has no future). Make sure `bower_components/polymer/polymer.html` is >1.0 - use `bower list`, which gives me polymer#1.1.5. It'd be worth making sure your webcomponents version is as you expected too (`bower list` will tell you that - should be 0.7.14, iinm) - and you probably just want the lite version; ie webcomponents-lite.min.js (it's in the same directory). TBH, I would recommend you start learning by using the PST - < https://developers.google.com/web/tools/polymer-starter-kit/index?hl=en> - it'll have all these things correct from the beginning, so you can concentrate on the actual Polymer aspects instead of the tooling that surrounds it all. HTH Max. On Sun, 11 Oct 2015 at 13:08 Rubén Díaz Martínez <[email protected]> wrote: > Hi. First of all I think you are using an old version of polymer, since in > the examples from polymer-project.org it says that you define your > elements with dom-element instead of polymer-element > > > El sábado, 10 de octubre de 2015, 23:58:04 (UTC+1), [email protected] > escribió: >> >> Hi >> >> I started lerning polymer, and I wrote first example app. >> >> index.html >> <!DOCTYPE html> >> <html> >> <head> >> <script type="text/javascript" >> src="bower_components/webcomponentsjs/webcomponents.js"></script> >> <link rel="import" href="http://localhost:8000/elements/hello-world.html" >> /> >> </head> >> <body> >> <hello-world></hello-world> >> </body> >> </html> >> >> elements/hello-world.html >> <link rel="import" href=" >> http://localhost:8000/bower_components/polymer/polymer.html" /> >> >> <polymer-element name="hello-world" noscript> >> <template> >> <h1>Hello World</h1> >> </template> >> </polymer-element> >> >> Console show problem: >> webcomponents.js:1 Uncaught SyntaxError: Unexpected token < >> >> I don't know where is problem. >> > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/polymer-dev/b769a3ae-6225-405e-bf2d-e9e2c742c2b3%40googlegroups.com > <https://groups.google.com/d/msgid/polymer-dev/b769a3ae-6225-405e-bf2d-e9e2c742c2b3%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/CAMZCrPhuuU5L3oSejbqofo5%2Bhy_ig9gT4pR6towi%2BeBk4eJ0Xg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
