Install Vuex 4 and remove 3 if you already have it in your system
npm uninstall --save vuex yarn add vuex@next
cp .env.sample .env
yarn serve
yarn build
See Configuration Reference.
https://metamask.github.io/api-playground/api-documentation/