Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors in Polymer 2 #885

Closed
ghost opened this issue May 25, 2017 · 5 comments
Closed

Errors in Polymer 2 #885

ghost opened this issue May 25, 2017 · 5 comments

Comments

@ghost
Copy link

ghost commented May 25, 2017

Using the simplest example possible,

        <vaadin-grid items='[{"name": "John", "surname": "Lennon", "role": "singer"}, {"name": "Ringo", "surname": "Starr", "role": "drums"}]'>
            <vaadin-grid-column>
                <template class="header">Name</template>
                <template>[[item.name]]</template>
            </vaadin-grid-column>
            <vaadin-grid-column>
                <template class="header">Surname</template>
                <template>[[item.surname]]</template>
            </vaadin-grid-column>
            <vaadin-grid-column>
                <template class="header">Role</template>
                <template>[[item.role]]</template>
            </vaadin-grid-column>
        </vaadin-grid>

in a Polymer 2 application, I get the following errors:

vaadin-grid-column.html:114 Uncaught TypeError: Polymer.dom(...).querySelectorAll(...).filter is not a function
    at HTMLElement._selectFirstTemplate (vaadin-grid-column.html:114)

Uncaught TypeError: Cannot read property 'forEach' of undefined
    at HTMLElement._hasTemplatesChanged (vaadin-grid-table.html:498)

Three times and two times, respectevly...
Andrea

@Saulis
Copy link
Contributor

Saulis commented May 25, 2017

@andreabioli please state which version of Polymer and <vaadin-grid> you are using.

@adviner
Copy link

adviner commented May 25, 2017

I can confirm this also. I updated to the latest Polymer
"polymer": "Polymer/polymer#^2.0.0",
and vaading-grid
"vaadin-grid": "^2.0.2",

No I get the error:

vaadin-grid-column.html:114 Uncaught TypeError: Polymer.dom(...).querySelectorAll(...).filter is not a function
at HTMLElement._selectFirstTemplate (vaadin-grid-column.html:114)
at HTMLElement._findTemplate (vaadin-grid-column.html:120)
at HTMLElement.value (vaadin-grid-column.html:190)
at HTMLElement._initializeProperties (element-mixin.html:606)
at HTMLElement._initializeProperties (legacy-element-mixin.html:130)
at HTMLElement.PropertyAccessors (property-accessors.html:120)
at TemplateStamp (template-stamp.html:119)
at PropertyEffects (property-effects.html:1075)
at PolymerElement (element-mixin.html:459)
at GestureEventListeners (gesture-event-listeners.html:40)

@Saulis
Copy link
Contributor

Saulis commented May 25, 2017

Ok, <vaadin-grid> versions 2.x are for Polymer 1.x, please use v3.0.0-alpha1 (and later) for Polymer 2.x support.

@adviner
Copy link

adviner commented May 25, 2017

Perfect. Thank you for the quick response 👍

@samiheikki
Copy link
Contributor

Closing. Please re-open if updating to v3.0.0-alpha1 did not help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants