-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Cannot read property of undefined #5259
Comments
There are a lot of files in the live demo. Could you create a JSBin that shows the minimal amount of code that reproduces the issue? That allows us to debug the issue. |
Looks like it is due to overriding observers, new test page: http://ahyoomee.miru.hk/zignage-polymer3/test/
Noting that the inner-container does not crash on it's own: http://ahyoomee.miru.hk/zignage-polymer3/test/inner-only.html |
That's still a lot of files and I am having trouble understanding where the observers would be going wrong. Please use this JSBin to create a live example with as minimal amount of code as possible. |
Do you have a Polymer v3 JSBin? Probably an interesting sign, bundling all the classes into one file eliminates the issue: http://ahyoomee.miru.hk/zignage-polymer3/test/bundle.html |
As listed on https://www.polymer-project.org/3.0/docs/about_30#trying-3.0, you can use any of the following: |
#JSBin seems non-functional for ES6 imports, StackBlitz appears better, here is the test case with the majority of the elements inside one JS file but the container element separate. Of note if the container and contained elements are presented in the same file the reported bugs disappear. Updated example: https://polymer-element-example-bnqh2u.stackblitz.io @jsilvermist, @TimvdLippe Please update the "new issue" page with the new links making clear the changes between Polymer versions 2 and 3. |
Sometimes it looks like stackblitz.io breaks on that link, loading up the edit page appears to fix that: https://stackblitz.com/edit/polymer-element-example-bnqh2u Otherwise you see a blank page and this:
Example on Glitch: https://glistening-nickel.glitch.me/ |
The last example still yields these errors in the console:
|
Any solutions or workarounds for this issue? We are having the same problem extending paper-dropdown-menu:
Overriding PropertiesChanged._getProperty() would work around this issue. But that sounds realy dirty.
|
See Polymer/polymer#5259 Co-authored-by: Tomi Virkki <[email protected]>
See Polymer/polymer#5259 Co-authored-by: Tomi Virkki <[email protected]>
See Polymer/polymer#5259 Co-authored-by: Tomi Virkki <[email protected]>
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Description
Occurs with a combination of nested extended elements and mixins. The property in question is common to many of the elements.
Porting project from Polymer v1 to v3.
Live Demo
http://ahyoomee.miru.hk/zignage-polymer3/q.html
Examples are available of all the individual elements working alone and of the v1 implementation.
Expected Results
No error.
Browsers Affected
Versions
The text was updated successfully, but these errors were encountered: