definePageMeta doesnt apply the correct layout
See original GitHub issueEnvironment
RootDir: /sandbox 06:59:32
Nuxt project info: 06:59:32
------------------------------
- Operating System: `Linux`
- Node Version: `v14.18.1`
- Nuxt Version: `3.0.0-27406801.569aaeb`
- Package Manager: `yarn@1.22.17`
- Bundler: `Vite`
- User Config: `-`
- Runtime Modules: `-`
- Build Modules: `-`
------------------------------
Reproduction
https://codesandbox.io/s/silent-brook-m9q8l?file=/pages/test.vue
Describe the bug
With the recent breaking change, discussed here, https://github.com/nuxt/framework/discussions/2883 . Only the default layout seems to be getting applied. Notice the test page, it should use the custom layout, but doesnt do so and ends up using the default layout.
Additional context
No response
Logs
No response
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:15 (11 by maintainers)
Top Results From Across the Web
vue.js - How would definePageMeta will be Mocked in Vitest?
I was trying Vitest to write UTs for my app which has Nuxt on the top of Vue. But I am getting definePageMeta...
Read more >layouts/ · Nuxt Directory Structure
Nuxt provides a customizable layouts framework you can use throughout your application, ideal for extracting common UI or code patterns into reusable layout...
Read more >Nuxt 3 layout middleware - Reddit
To my understanding, the only way to use middlewares in Nuxt 3 is using definePageMeta. However this doesn't seem to work on layouts...
Read more >Documentation · Nuxt Color Mode
unknown to render a placeholder or use our <ColorScheme> component. Example: <template> <ColorScheme placeholder ...
Read more >Untitled
Step 1 — Installing Nuxt in the Example Application In this step, you are going ... However this doesn't seem to work on...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
and even in the issue template somewhere
Will gladly take this up.