Static GitHub Issues

[863] get vuex store without a context or a vue component

prev: How to include path in sass-loader?
next: When 'nuxt build nuxt start' ,some browsers open pages that are garbled.

How I can get the store in javascript modules that doesn't have access to the nuxt context or a vue component?

import Store from '~store'
// or
const store = require('~store')

console.log(store)
// { createStore: [Getter] }

is not working any more in the latest versions.

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c736">#c736</a>)</em></sub></div>