Closed Neo-Zhixing closed 4 years ago
When running in a Nuxt.js environment, the following error occurs:
Cannot read property '__VUE_DEVTOOLS_GLOBAL_HOOK__' of null
In Vuex, this code snippet directly caused the problem:
var devtoolHook = typeof window !== 'undefined' && window.__VUE_DEVTOOLS_GLOBAL_HOOK__;
The problem was traced back to this package, which contains the following:
if (typeof window === 'undefined') { global.window = null } if (typeof document === 'undefined') { global.document = null }
What was the reason for mutating global variables "window" and "document" from undefined to null? Does it cause any problems to remove these?
Closed by #27
When running in a Nuxt.js environment, the following error occurs:
Cannot read property '__VUE_DEVTOOLS_GLOBAL_HOOK__' of null
In Vuex, this code snippet directly caused the problem:
The problem was traced back to this package, which contains the following:
What was the reason for mutating global variables "window" and "document" from undefined to null? Does it cause any problems to remove these?