Unable to get property 'store' - Internet Explorer
fullyfaltu opened this issue · 0 comments
fullyfaltu commented
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.