diff --git a/lib/app/index.js b/lib/app/index.js index 87fa679d3..d3c2db8b9 100644 --- a/lib/app/index.js +++ b/lib/app/index.js @@ -35,7 +35,9 @@ const defaultTransition = <%= export { NuxtError } export function createApp (ssrContext) { + <% if (store) { %> const store = createStore() + <% } %> const router = createRouter() if (process.browser) {