diff --git a/docs/7.migration/6.pages-and-layouts.md b/docs/7.migration/6.pages-and-layouts.md index 1f440da1922b..0896cb8da59a 100644 --- a/docs/7.migration/6.pages-and-layouts.md +++ b/docs/7.migration/6.pages-and-layouts.md @@ -24,7 +24,17 @@ You will also need to change how you define the layout used by a page using the 1. Replace `` with `` 1. Use `definePageMeta` to select the layout used by your page. -1. Move `~/layouts/_error.vue` to `~/error.vue`. See [the error handling docs](/docs/getting-started/error-handling). +1. Move `~/layouts/_error.vue` to `~/error.vue`. See [the error handling docs](/docs/getting-started/error-handling). If you want to ensure that this page uses a layout, you can use [the `` component](/docs/guide/directory-structure/layouts) directly within `error.vue`: + + ```vue + + ``` ### Example: `~/layouts/custom.vue`