diff --git a/packages/react-server/core/util/RequestLocalStorage.js b/packages/react-server/core/util/RequestLocalStorage.js index 6bdadd17b..251f1d2b0 100644 --- a/packages/react-server/core/util/RequestLocalStorage.js +++ b/packages/react-server/core/util/RequestLocalStorage.js @@ -1,5 +1,7 @@ var RequestLocalStorage = require('request-local-storage'); -RequestLocalStorage.patch(require('cls-q')); +if (SERVER_SIDE) { + RequestLocalStorage.patch(require('cls-q')); +} module.exports = RequestLocalStorage;