diff --git a/src/core/util/env.js b/src/core/util/env.js index 07cadd9cf9a..a79cb8d5333 100644 --- a/src/core/util/env.js +++ b/src/core/util/env.js @@ -41,7 +41,7 @@ export const isServerRendering = () => { if (!inBrowser && !inWeex && typeof global !== 'undefined') { // detect presence of vue-server-renderer and avoid // Webpack shimming the process - _isServer = global['process'].env.VUE_ENV === 'server' + _isServer = global['process'] && global['process'].env.VUE_ENV === 'server' } else { _isServer = false }