Fresh Doc Driven project renders custom layout twice.

On a fresh project npx nuxi init <project_name> -t doc-driven, upon running npm run dev, the about page shows the custom layout twice.
3 Replies
kapa.ai
kapa.ai4w ago
Hi @itwebadmin. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- Based on the information provided in the knowledge sources, I don't have enough specific details to confirm or explain why a fresh Doc Driven project would render a custom layout twice on the about page. The knowledge sources don't directly address this particular issue for a Doc Driven template. However, there are a couple of related issues that have been reported in Nuxt that might be relevant: 1. There was a bug reported where pages would mount twice if they used a layout GitHub PR #10874 (https://github.com/nuxt/nuxt/pull/10874). 2. Another issue was reported where useAsyncData and useFetch would run twice if a page used a layout GitHub Issue #13369 (https://github.com/nuxt/nuxt/issues/13369). These issues suggest that there have been some problems related to layouts rendering or executing code multiple times in Nuxt. However, they don't specifically address the Doc Driven template or confirm that this is still an ongoing issue in the latest version. If you're experiencing this problem with a fresh Doc Driven project, it would be advisable to: 1. Check if you're using the latest version of Nuxt and the Doc Driven template. 2. Verify if the issue persists after clearing the cache and doing a fresh install. 3. If the problem continues, consider reporting it as a new issue on the Nuxt GitHub repository, providing specific steps to reproduce the problem with your Doc Driven project. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.ai4w ago
<@333859264252739586> Kapa.ai is still learning and improving, please let me know how I did by reacting below.
itwebadmin
itwebadminOP4w ago
Can't even do what I need to do from having to debug someone else's code lolz
Want results from more Discord servers?
Add your server