googlearchive / polylint

Lint polymer!
BSD 3-Clause "New" or "Revised" License
116 stars 19 forks source link

Markup/options for lazy loaded elements #139

Open NicolasRannou opened 8 years ago

NicolasRannou commented 8 years ago

Is there some special options/markup for lazy loaded elements?

I want to use poly lint as part of my testing pipeline but it now reports error on lazy loaded pages: Same as the app-drawer-temaplte (https://github.com/Polymer/app-drawer-template)

/src/my-app.html:95:11
    <my-view1> is undefined.
/src/my-app.html:96:11
    <my-view2> is undefined.
/src/my-app.html:97:11
    <my-view3> is undefined.
tjmonsi commented 8 years ago

Have you guys found a solution for this?

chuckh commented 8 years ago

Have same issue with PSK2 lazy loaded pages such as <psk-page-home> is undefined. Below is PSK2 output from polylint.

/bower_components/app-layout/app-drawer-layout/app-drawer-layout.html:149:3
    Property isAttached not found in 'properties' for element 'app-drawer-layout'
/bower_components/app-layout/app-drawer/app-drawer.html:173:3
    Property isAttached not found in 'properties' for element 'app-drawer'
/bower_components/app-layout/app-drawer/app-drawer.html:173:3
    Property isAttached not found in 'properties' for element 'app-drawer'
/bower_components/app-layout/app-header/app-header.html:319:3
    Property isAttached not found in 'properties' for element 'app-header'
/bower_components/app-layout/app-header-layout/app-header-layout.html:125:3
    Property isAttached not found in 'properties' for element 'app-header-layout'
/src/psk-app.html:138:9
    <psk-page-home> is undefined.
/src/psk-app.html:139:9
    <psk-page-about> is undefined.
/src/psk-app.html:140:9
    <psk-page-404> is undefined.