diff --git a/lib/app/store.js b/lib/app/store.js index af41eb79d6..4d12f9ecef 100644 --- a/lib/app/store.js +++ b/lib/app/store.js @@ -50,7 +50,7 @@ function getModule (filename) { const file = files(filename) const module = file.default || file if (module.commit) { - throw new Error('[nuxt] store/' + filename.replace('./', '') + ' should export a `createStore` method which returns a Vuex instance.') + throw new Error('[nuxt] store/' + filename.replace('./', '') + ' should export a method which returns a Vuex instance.') } if (module.state && typeof module.state !== 'function') { throw new Error('[nuxt] state should be a function in store/' + filename.replace('./', ''))