From 29d2751940bb01b39d584d21c67d2ccddda64845 Mon Sep 17 00:00:00 2001 From: Sebastien Chopin Date: Mon, 22 May 2017 14:05:23 +0200 Subject: [PATCH] Update warning for Vuex store (classic mode) --- lib/app/store.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/app/store.js b/lib/app/store.js index 4d12f9ecef..af41eb79d6 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 method which returns a Vuex instance.') + throw new Error('[nuxt] store/' + filename.replace('./', '') + ' should export a `createStore` 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('./', ''))