Subscribe on changes!

Does not work with Vuex

avatar
Apr 29th 2020

It can't work with Vuex due to process being undefined when createStore is called

It was looking for process.env.NODE_ENV

The workaround was to include the following in the index.html file where createStore was called...

window.process = { env: { NODE_ENV: 'you can put whatever you want here' } }

Also submitted an issue in Vuex for their attention...

https://github.com/vuejs/vuex/issues/1737

avatar
Apr 29th 2020