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 getState of undefined" #85

Closed
prescottprue opened this issue Oct 12, 2017 · 8 comments
Closed

"Cannot read property getState of undefined" #85

prescottprue opened this issue Oct 12, 2017 · 8 comments
Labels

Comments

@prescottprue
Copy link

First off: Thanks for the great package

Following basic setup instructions causes the following issue:

screen shot 2017-10-12 at 12 06 53 pm

It looks like it is assuming that all components are getting store? Not sure why the check for the property isn't catching it.

@tbranyen
Copy link

I had the same issue when trying to use this module on my app.

@davidcsally
Copy link
Member

Thanks @prescottprue and @tbranyen! Could you let us know if you're using Redux, and what version of React / Redux you are using? Also, if you have any additional code to share to help us debug this, it would be greatly appreciated!

For the short term, we could try removing the call to the redux store by removing lines 95-102 in 'chrome-ext/backend/installHook.js'.

I updated the readme to include instructions on how to build and load a custom version of the extension.

@tbranyen
Copy link

    "redux": "3.6.0",
    "react": "15.6.1",
    "react-redux": "5.0.5",

@betoharres
Copy link

betoharres commented Oct 13, 2017

I'm getting this error too.
Here's my yarn.lock: https://pastebin.com/GGVsPNVQ

I hope this helps! Great library btw! 👍

EDIT: I'm using create-react-app

@mike-es6
Copy link

Getting the same problem. Should the code also check that there actually is a state property and that it and that it has a getState method? Someone not using redux might use a state prop to mean something else, for instance.

@prescottprue
Copy link
Author

@mike-es6 I think that is exactly what would fix it

@davidcsally davidcsally added the bug label Jan 5, 2018
@davidcsally
Copy link
Member

Fixed it here #202

@davidcsally
Copy link
Member

Going to close

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

No branches or pull requests

5 participants