farmOS / field-kit

A modular, offline-first companion app to farmOS.
https://farmOS.org
GNU General Public License v3.0
60 stars 39 forks source link

[Vue Warn]: Error in getter for watcher 'locale', cannot read property 'state' of undefined #424

Closed jgaehring closed 3 years ago

jgaehring commented 3 years ago

Spent some time trying to debug this last weekend, but seems to only be a bug in the dev environment, and inconsistently so.

Won't fix unless it becomes a problem in production, but want to make sure to record it here for future reference.

jgaehring commented 3 years ago

This seems to have been a problem with when the global mixin was being applied and when the store was being added to the Vue instance. It was resolved in e9ce03c by importing the store directly, rather than using mapState. Still seems kinda weird, but I'm no longer seeing the error in the dev env.