googlearchive / polymer-tutorial

Deprecated Polymer 0.5 tutorial app
211 stars 125 forks source link

Uncaught TypeError: undefined is not a function Element.js:104 error at Step 1 #10

Closed hnakamur closed 10 years ago

hnakamur commented 10 years ago

I got following error on Chrome 34.0.1847.131, OS X 10.9.3

Uncaught TypeError: undefined is not a function Element.js:104
classList Element.js:104
Polymer.applySelection core-selector.js:291
Polymer.selectionSelect core-selector.js:285
d.dispatchMethod events.js:41
e.getEventHandler events.js:73
r events.js:400
p events.js:317
n events.js:286
m events.js:230
Platform.flags.shadow.B.dispatchEvent events.js:789
b.fire utils.js:60
Polymer.setItemSelected core-selection.js:46
Polymer.select core-selection.js:61
Polymer.valueToSelection core-selector.js:248
Polymer.updateSelected core-selector.js:221
Polymer.targetChanged core-selector.js:193
e.invokeMethod properties.js:109
e.notifyPropertyChanges properties.js:63
Observer.report_ observe.js:756
createObject.check_ observe.js:1172
global.Platform.performMicrotaskCheckpoint observe.js:831
(anonymous function) patches-mdv.js:26
c microtask.js:23
c MutationObserver.js:37
b

polymer-tutorial-error-console2

polymer-tutorial-error-sources2

workaround

As a workaround, I created a fresh project and the example works as expected now. Here is what I did.

source code: https://github.com/hnakamur/polymer-tutorial-using-bower demo site: http://hnakamur.github.io/polymer-tutorial-using-bower/

ebidel commented 10 years ago

@arthurevans can you take a look?

arthurevans commented 10 years ago

Thanks. The components packaged with the tutorial were out of sync. This should be fixed in the polymer - tutorial repo now.