diff --git a/lib/app/components/nuxt-error-debug.vue b/lib/app/components/nuxt-error-debug.vue
deleted file mode 100755
index d84133ef72..0000000000
--- a/lib/app/components/nuxt-error-debug.vue
+++ /dev/null
@@ -1,67 +0,0 @@
-
-
-
-
{{ error.statusCode }}
-
-
{{ error.message }}
-
-
{{ error.stack }}
-
Back to the home page
-
-
-
-
-
-
-
diff --git a/lib/build/index.js b/lib/build/index.js
index 5d283743f9..062de32bb8 100644
--- a/lib/build/index.js
+++ b/lib/build/index.js
@@ -182,7 +182,7 @@ function * generateRoutesAndFiles () {
transition: this.options.transition,
components: {
Loading: r(__dirname, '..', 'app', 'components', 'nuxt-loading.vue'),
- ErrorPage: r(__dirname, '..', 'app', 'components', (this.dev ? 'nuxt-error-debug.vue' : 'nuxt-error.vue'))
+ ErrorPage: r(__dirname, '..', 'app', 'components', 'nuxt-error.vue')
}
}
if (templateVars.loading === 'string' && templateVars.loading.slice(-4) !== '.vue') {
@@ -200,10 +200,7 @@ function * generateRoutesAndFiles () {
if (files.includes('pages/_app.vue')) {
templateVars.appPath = r(this.dir, 'pages/_app.vue')
}
- if (this.dev && files.includes('pages/_error-debug.vue')) {
- templateVars.components.ErrorPage = r(this.dir, 'pages/_error-debug.vue')
- }
- if (!this.dev && files.includes('pages/_error.vue')) {
+ if (files.includes('pages/_error.vue')) {
templateVars.components.ErrorPage = r(this.dir, 'pages/_error.vue')
}
let moveTemplates = templatesFiles.map((file) => {