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 'query' of undefined (wrapStore.js:166) #203

Open
salnikovp0 opened this issue Apr 11, 2019 · 5 comments
Open

Cannot read property 'query' of undefined (wrapStore.js:166) #203

salnikovp0 opened this issue Apr 11, 2019 · 5 comments

Comments

@salnikovp0
Copy link

Hi,

Ive updated the version to the latest 2.0.2, And i started to get this Error when i try to load a page that content.html.
The manifest.json doesn't changed, got the Permission: tabs included like before.

@tshaddix
Copy link
Owner

Hello @salnikovp0 - Can you give us a little more detail around the structure of your app? Are you including webext-redux in a normal html page?

@salnikovp0
Copy link
Author

Yes it happens from the version of "react-chrome-redux": "2.0.0-alpha.5" and newer.
I use it also in a content page, when declare the
"content_scripts": [
{
"matches": ["://"],
"js": ["pages/index.js"],
"run_at": "document_end"
}
]
It try's to load the webapi in the html page, and not in the background side. that's why it falls

@tshaddix
Copy link
Owner

Got it - wrapStore was not designed to be used on a content script. Is there a reason you are using wrapStore on a content-script rather than a Proxy Store?

@salnikovp0
Copy link
Author

salnikovp0 commented Apr 13, 2019 via email

@tshaddix
Copy link
Owner

@salnikovp0 Is there any way you can share a snippet of your code for your content script that's throwing the error?

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

No branches or pull requests

2 participants