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

Unable to get property 'store' - Internet Explorer #1385

Open
fullyfaltu opened this issue Apr 7, 2017 · 0 comments
Open

Unable to get property 'store' - Internet Explorer #1385

fullyfaltu opened this issue Apr 7, 2017 · 0 comments

Comments

@fullyfaltu
Copy link

fullyfaltu commented Apr 7, 2017

I'm trying to run this boilerplate on IE 9 and IE10. But every time, it gives me following error:

SCRIPT5007: Unable to get property 'store' of undefined or null reference 
main-c886930cd2d851f39878.js, line 34 character 25758

I tried to fix this issue following #416 but still getting same error. Here is my update in client.js file:

const historyStrategy = supportsHistory() ? browserHistory : hashHistory;
const _historyStrategy = useScroll(() => historyStrategy)();
const dest = document.getElementById('content');
const store = createStore(_historyStrategy, client, window.__data);
const history = syncHistoryWithStore(_historyStrategy, store);

P.s. I'm using 0.9.0 version of this boilerplate.

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

1 participant