diff --git a/packages/vue-app/template/App.js b/packages/vue-app/template/App.js index a39b67c749..0e2b00f79e 100644 --- a/packages/vue-app/template/App.js +++ b/packages/vue-app/template/App.js @@ -12,7 +12,7 @@ import Vue from 'vue' ]: [] ] %> <% if (utilsImports.length) { %>import { <%= utilsImports.join(', ') %> } from './utils'<% } %> -<% if (features.layouts && components.ErrorPage) { %>import NuxtError from '<%= components.ErrorPage %>'<% } %> +import NuxtError from '<%= components.ErrorPage ? components.ErrorPage : "./components/nuxt-error.vue" %>' <% if (loading) { %>import NuxtLoading from '<%= (typeof loading === "string" ? loading : "./components/nuxt-loading.vue") %>'<% } %> <% if (buildIndicator) { %>import NuxtBuildIndicator from './components/nuxt-build-indicator'<% } %> <% css.forEach((c) => { %>