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

Cannot read property 'Path' of undefined #97

Open
moebiusmania opened this issue Aug 30, 2017 · 4 comments
Open

Cannot read property 'Path' of undefined #97

moebiusmania opened this issue Aug 30, 2017 · 4 comments

Comments

@moebiusmania
Copy link

moebiusmania commented Aug 30, 2017

I'm upgrading 1.x elements with polymer-redux 0.4.2 to 2.x/3.x element syntax and polymer-redux 1.0.2, following the docs it's all going fine, but the statePath attribute to properties throws the error in the title. During the refactor the store has remained unchanged and updates on event dispatching.

Someone has any ideas?

@moebiusmania
Copy link
Author

got it, since I'm working with Polymer 3.0-preview branch there is no global Polymer object and this line https://github.com/tur-nr/polymer-redux/blob/master/src/index.js#L62 breaks.

I will adapt the code to ES modules and if it works correctly I'll send you a PR so maybe you can create a 3.0 preview branch too 😄

@tur-nr
Copy link
Owner

tur-nr commented Aug 30, 2017 via email

@moebiusmania
Copy link
Author

@tur-nr fixed! I'm doing the PR but I see you only have master branch, PR there anyway or you want to create a preview branch where I can PR to?

@ralexrdz
Copy link

ralexrdz commented Nov 13, 2017

for me, changing the line

Polymer.Path.get(state, statePath);

to

window.Polymer.Path.get(state, statePath);

make it work

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

No branches or pull requests

3 participants