Для примера взял репозиторий
https://github.com/bananaoomarang/isomorphic-redux и добавил в него
redux-logger
Сделал, вроде бы, всё правильно.
const store = applyMiddleware(promiseMiddleware, logger)(createStore)(reducer);
При запуске приложения в браузере выдаёт ошибку
ReferenceError: window is not defined
at /home/max/projects/isomorphic-redux/node_modules/redux-logger/lib/index.js:55:33
at /home/max/projects/isomorphic-redux/shared/lib/promiseMiddleware.js:12:5
at /home/max/projects/isomorphic-redux/shared/lib/fetchComponentData.js:9:38
at Array.map (native)
at fetchComponentData (/home/max/projects/isomorphic-redux/shared/lib/fetchComponentData.js:9:26)
at /home/max/projects/isomorphic-redux/server.jsx:71:5
at /home/max/projects/isomorphic-redux/node_modules/react-router/lib/match.js:58:5
at /home/max/projects/isomorphic-redux/node_modules/react-router/lib/useRoutes.js:120:15
at done (/home/max/projects/isomorphic-redux/node_modules/react-router/lib/AsyncUtils.js:49:19)
at /home/max/projects/isomorphic-redux/node_modules/react-router/lib/AsyncUtils.js:55:7
Помогите понять, куда копать с такой ошибкой?