CustomElements.parser undefined when switching to 0.5.1

72 views
Skip to first unread message

Viktor Kojouharov

unread,
Nov 16, 2014, 4:56:25 AM11/16/14
to polym...@googlegroups.com
Hello,

I'm getting a lot of errors when I tried switching to 0.5.1 (from 0.4.2). Since I couldn't find any published list of changes, could anyone tell me what I need to change in order to get back on track?

I'm assuming all my custom elements will cause an error now. For example, one of the first elements I can see looks broken, visually, and that's right after I get the CustomElements.parser is undefined error (in the latest chrome stable).
That element looks like this:

Eric Bidelman

unread,
Nov 16, 2014, 2:53:42 PM11/16/14
to Viktor Kojouharov, polymer-dev

You're missing an outer <template> in your element definition, the one that polymer creates shadow dom from. It should not have any bindings on it.

The stylesheet should go there as well so polymer can do the style shimming. Last time I checked, stylesheets inside a conditional template did not work.

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/93c4909c-004e-4d00-a6bf-e18dc634e65a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Viktor Kojouharov

unread,
Nov 16, 2014, 4:12:19 PM11/16/14
to polym...@googlegroups.com, vkojo...@gmail.com
That's not the problem at all.

0.4.2 had no problem displaying that element correctly. Regardless, I removed the bind attribute from the template element (and I found another that also had such a bind element), but that didn't change anything.

CustomElements.parser is still undefined.

Eric Bidelman

unread,
Nov 16, 2014, 4:17:46 PM11/16/14
to Viktor Kojouharov, polymer-dev

Viktor Kojouharov

unread,
Nov 16, 2014, 5:06:19 PM11/16/14
to polym...@googlegroups.com, vkojo...@gmail.com
Yes, changing that seems to bring me one step closer to where I was before updating.

Is there a comprehensive list of changes from 0.4 to 0.5? I can only assume that such a list would be quite useful for anyone that's migrating, because going back to the tutorials to spot the differences doesn't seem that efficient.

Eric Bidelman

unread,
Nov 16, 2014, 5:33:34 PM11/16/14
to Viktor Kojouharov, polymer-dev

Viktor Kojouharov

unread,
Nov 16, 2014, 6:47:30 PM11/16/14
to polym...@googlegroups.com, vkojo...@gmail.com
That's a very nicely formatted release log. I also stumbled upon https://blog.polymer-project.org/, which also does a swell job at explaining things. I would recommend that one of the two links be added to the 'Getting started -> Get the code -> Updating packages' for better visibility. 

Eric Bidelman

unread,
Nov 17, 2014, 12:34:09 AM11/17/14
to Viktor Kojouharov, polymer-dev

There's a blog link at the top of the site. We also tweet updates for each release if you want to follow on Twitter

Reply all
Reply to author
Forward
0 new messages