Static GitHub Issues

[3194] this.addLayout of module not possible to set error layout

prev: Server Side rendering in Nuxt Axios module proxy URL
next: Nuxt's default webpack config does not handle .vue extension imports inside pages

What problem does this feature solve?

Currently only layouts/error.vue is able to overwrite the error layout. I'd like to do this inside of a module with:

this.addLayout({
 name:"error",
 src: "path/to/custom/error.vue"
})

It would be helpful for module to developer to overwrite the error page on demand.

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This feature request is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c6850">#c6850</a>)</em></sub></div>