Migration the hard way

439 views
Skip to first unread message

Vincent Uribe

unread,
May 18, 2015, 4:30:47 PM5/18/15
to polym...@googlegroups.com
Hi!

I've been developping a webapp since january and kept going with Polymer 0.5 as the 0.8 was not final enough for my tastes. I started migrating to the 0.9 today and have been somewhat battling with this error:

Uncaught TypeError: Polymer.dom is not a function
Uncaught TypeError: Cannot read property 'instanceCount' of undefined
Uncaught NotSupportedError: Failed to execute 'registerElement' on 'Document': Registration failed for type 'paper-ripple'. A type with that name is already registered.

This is my bower.json:

  "dependencies": {
    "polymer": "Polymer/polymer",
    "iron-ajax": "PolymerElements/iron-ajax",
    "iron-autogrow-textarea": "PolymerElements/iron-autogrow-textarea",
    "iron-icon": "PolymerElements/iron-icon",
    "iron-a11y-keys-behavior": "PolymerElements/iron-a11y-keys-behavior",
    "iron-a11y-keys": "PolymerElements/iron-a11y-keys",
    "iron-input": "PolymerElements/iron-input",
    "iron-signals": "PolymerElements/iron-signals",
    "iron-icons": "PolymerElements/iron-icons",
    "iron-collapse": "PolymerElements/iron-collapse",
    "iron-flex-layout": "PolymerElements/iron-flex-layout",
    "iron-fit-behavior": "PolymerElements/iron-fit-behavior",
    "paper-button": "PolymerElements/paper-button",
    "paper-toolbar": "PolymerElements/paper-toolbar",
    "paper-tabs": "PolymerElements/paper-tabs",
    "paper-toast": "PolymerElements/paper-toast",
    "paper-menu": "PolymerElements/paper-menu",
    "paper-item": "PolymerElements/paper-item",
    "paper-header-panel": "PolymerElements/paper-header-panel",
    "paper-icon-button": "PolymerElements/paper-icon-button",
    "paper-drawer-panel": "PolymerElements/paper-drawer-panel",
    "paper-checkbox": "PolymerElements/paper-checkbox",
    "layout": "Polymer/layout",
    "neon-animation": "PolymerElements/neon-animation"
  },
  "resolutions": {
    "polymer": "v0.9.0-rc.1",
    "webcomponentsjs": "^0.6.0"
  }

Am I doing something wrong?

Thanks in advance.

Arthur Evans

unread,
May 19, 2015, 2:35:54 AM5/19/15
to Vincent Uribe, polymer-dev
You should be installing Polymer 0.9.0, not 0.9.0-rc.1.

Other than that, it's hard to know what the problem is without code. "Polymer.dom is not a function" sounds like you might be importing the 0.5 version of Polymer. Try logging Polymer.version as a sanity check?

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/bc05eec0-daae-47ce-bb16-5756e47ad45e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Vincent Uribe

unread,
May 19, 2015, 5:00:12 AM5/19/15
to Arthur Evans, polymer-dev
That worked! Thank you so much
Reply all
Reply to author
Forward
0 new messages