-
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
TypeError when updating a sub-property: Cannot use 'in' operator to search for 'value' in undefined #3307
Comments
This error only occurs when using Everything works as intended if I don't use |
This also only happens if the sub-property's root value is bound inside the text-fixture, such as: <test-fixture id="element">
<template is="dom-template">
<my-element data="{{data}}"></my-element>
</template>
</test-fixture> |
This seems more like an issue with test-fixture not handling data binding. @cdata, thoughts? |
I concur that this may be related to a |
Sorry but I'm not involved with that code at the moment. Plus I stated earlier that is only occurs when using wct from the cli. I can't remember whether that's true, but if it is then jsbin isn't going to help. |
@cdata, I encountered the same issue and managed to produce a small test-case without wct: http://jsbin.com/dunikitije/edit?html,console,output The issue is fixed when I change the |
@Sleeckx Thanks for the research. But, if you don't use |
@cdata, I respectfully disagree. As @justincy said in his last comment:
Also, if it only occurred while they were using From what I saw, the issue is mainly related to the fact that calling |
I'm also getting this error when trying to bind the
Clicking on the button displays the menu, but also logs the reported error to the console. Clicking on the displayed menu also logs the reported error to the console. |
@Sleeckx He also said:
Even if the bug is not related to |
Thanks for the issue. It has been a great while since this issue was opened. Sadly, this issue misses a live reproduction with Polymer 2 for us to be able to debug and potentially fix. Polymer 2 fixes a large amount of issues, probably including this one as well. Please see CONTRIBUTING.md for guidelines on filing issues. You can start from this jsBin template as a starting point and link it in the issue template under "Live Demo". Feel free to file a new issue following these instructions if you can still reproduce this issue with Polymer 2. Thank you! |
I'm getting a TypeError when attempting to update a sub-property:
The last line in the stack trace, trepo-core-person.html:173, looks like this:
I have verified that
value
exists as an empty object{}
andpersonResponse.body.id
has a value.This is only happening when running tests with
wct
. It's using Polymer v1.2.3.The text was updated successfully, but these errors were encountered: