From 849c8a91324d1515074a199c53dbfa17645cdee3 Mon Sep 17 00:00:00 2001 From: Guy Bedford Date: Fri, 24 Dec 2021 09:52:52 -0800 Subject: [PATCH] add process guard --- src/utils/PropTypes.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/PropTypes.js b/src/utils/PropTypes.js index 5284b53a..edff0354 100644 --- a/src/utils/PropTypes.js +++ b/src/utils/PropTypes.js @@ -1,7 +1,7 @@ import PropTypes from 'prop-types'; export const timeoutsShape = - process.env.NODE_ENV !== 'production' + typeof process !== 'undefined' && process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType([ PropTypes.number, PropTypes.shape({ @@ -13,7 +13,7 @@ export const timeoutsShape = : null; export const classNamesShape = - process.env.NODE_ENV !== 'production' + typeof process !== 'undefined' && process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType([ PropTypes.string, PropTypes.shape({