ergonode / vuems

A simple mechanism to transform a monolithic Vue application into an application based on Micro Services architecture
https://vuems.ergonode.com
Open Software License 3.0
78 stars 9 forks source link

Cannot read property 'registerModule' of undefined #6

Closed Pirosauro closed 3 years ago

Pirosauro commented 4 years ago

Expected behavior

store should be defined when registerModule is called or, at least, should check if it is defined.

Current Behavior

The above error.

Steps to Reproduce

See CodeSanbox

Context (Environment)

Latest nuxt-ts (2.14.4) It happens when ./store is empty. In my case I planned to use vuex but haven't started the development yet

bleto commented 4 years ago

Thanks for reporting :) Tell me if you tried to set the vuex = false in your nuxt.config.js file?

vuems: {
        ...
        vuex: false,
},
bleto commented 3 years ago

@Pirosauro If you have more questions or something is not clear, new documentation has been created. https://vuems.ergonode.com/