erikras / erikras/react-redux-universal-hot-example

Unable to get property 'store' - Internet Explorer

Open
#1,385 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
12.1k
Forks
2.5k
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.