Mutating Prototype Error in Firefox

97 views
Skip to first unread message

Gee Jay Almestas

unread,
Nov 13, 2014, 9:51:17 PM11/13/14
to polym...@googlegroups.com

Hello I'm having mutating Prototype Error in my firefox 33.1 kindly see image below

http://i.gyazo.com/85b852e2572121d234dd374798d5d8a7.png


i also included webcomponents.js and platform.js on my html

Gee Jay Almestas

unread,
Nov 14, 2014, 12:01:40 AM11/14/14
to polym...@googlegroups.com
tried to remove webcomponents.js now im gettings this error in firefox, but in chrome no error

Aaron Salvo

unread,
Nov 14, 2014, 9:49:21 AM11/14/14
to polym...@googlegroups.com
While, I despise replies like this...I'll commit the crime for a purpose:

I've never seen that error, BUT...

I'd suggest you only use webcomponents.js, since platform.js is now deprecated. So I'd put webcomponents.js back in and pull out platform.js.

Something I can say (because I got bit by it recently) is that you're most likely not getting the error in Chrome, because Chrome doesn't need the web components polyfills (webcomponents.js).

Everything was looking good on a project I'm working on, until I tested in Safari and Firefox. It's an easy fix, however, to get Chrome loading the polyfills: just add the 'register' attribute to the script tag where you pull in webcomponents.js. 

I hope this was at least a little helpful. Hopefully someone else can weigh in. I personally would love some better strategies for debugging Polymer elements.

Scott Miles

unread,
Nov 14, 2014, 11:52:27 AM11/14/14
to Gee Jay Almestas, polymer-dev
`webcomponents.js` is a newer version of `platform.js`. Never load both, just use `webcomponents.js`.

The message you are getting is a Warning (not an Error) and Firefox is the only browser that emits this warning (to my knowledge). Sadly, there is no way to avoid the message, because Custom Elements polyfill must manipulate prototypes to do it's work.

The message is annoying but harmless.

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/378f8d28-137c-478a-a636-f7c74a1492bd%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Gee Jay Almestas

unread,
Nov 14, 2014, 6:44:14 PM11/14/14
to polym...@googlegroups.com, jigsg...@gmail.com
ok i use webcomponents.js only and remove platform.js the problem now is my core-icons and paper-fab are not showing up also cant click my navigation

here's my navigation
<core-scaffold id="scaffold" responsiveWidth="640px">
<core-header-panel navigation flex mode="seamed">
<core-toolbar>Navigation</core-toolbar>
<core-menu id="menu">
<core-item name="drawerPanel" icon="home" label="Home"><a href="#"></a></core-item>
<core-item name="about" icon="account-circle" label="Who"></core-item>
<core-item name="works" icon="work" label="Works"></core-item>
<core-item name="skills-cont" icon="gesture" label="Skills" name="skills"></core-item>
<core-item name="contacts-cont" icon="settings-phone" label="Contacts"></core-item>
<core-item name="cart" icon="shopping-cart" label="D Shop"><a href="#" target="_blank"></a></core-item>
<core-item name="v8" icon="link" label="v8"><a href="" target="_blank"></a></core-item>
<core-item name="v7" icon="link" label="v7"><a href="" target="_blank"></a></core-item>
<core-item name="v6" icon="link" label="v6"><a href="" target="_blank"></a></core-item>
</core-menu>

also got this error on firefox ONLY

Aleks Totic

unread,
Nov 14, 2014, 8:03:49 PM11/14/14
to polym...@googlegroups.com
That's not an error, that's a warning, and you can ignore it.

Aleks

Gee Jay Almestas

unread,
Nov 14, 2014, 8:43:17 PM11/14/14
to polym...@googlegroups.com
i see, any idea why my core icons not showing up when i use webcomponents.js ? but when i use platform.js its working fine

Gee Jay Almestas

unread,
Nov 14, 2014, 10:24:57 PM11/14/14
to polym...@googlegroups.com
anyways thanks again for the help guys :)

Aaron Salvo

unread,
Nov 14, 2014, 10:48:13 PM11/14/14
to polym...@googlegroups.com
I was getting that exact error (warning), and it sat there and accumulated. Like 1000's of them non-stop.

My my fix was to wipe out the polymer-dev/, polymer/, and platform/ directories and then reinstall the latest versions using Bower.

Still would like to know what was causing that.


On Thursday, November 13, 2014 9:51:17 PM UTC-5, Gee Jay Almestas wrote:
Reply all
Reply to author
Forward
0 new messages