[{"data":1,"prerenderedAt":397,"buildId":398},["ShallowReactive",2],{"diagnostic-content-NUXT0098":3,"navigation_docs":296},{"id":4,"title":5,"body":6,"category":12,"code":284,"description":285,"docsUrl":13,"extension":286,"fix":287,"framework":288,"meta":289,"navigation":290,"pack":15,"path":291,"ruleId":16,"rulePath":17,"seo":292,"severity":18,"source":19,"sourceUrl":20,"stem":293,"why":294,"__hash__":295},"diagnostics\u002Fdiagnostics\u002FNUXT0098.md","NUXT0098: Render NuxtPage in parent pages",{"type":7,"value":8,"toc":274},"minimark",[9,21,26,47,51,57,61,66,69,132,135,209,213,216,242,246,258,262,270],[10,11],"rule-metadata",{"category":12,"docsUrl":13,"fix":14,"pack":15,"ruleId":16,"rulePath":17,"severity":18,"source":19,"sourceUrl":20},"routing","https:\u002F\u002Fnuxt.com\u002Fdocs\u002F4.x\u002Fguide\u002Fdirectory-structure\u002Fapp\u002Fpages#nested-routes","suggestion","vite-doctor\u002Fnuxt","nuxt\u002Frouting\u002Fparent-page-requires-nuxtpage","\u002Fnuxt\u002Frules\u002Frouting\u002Fparent-page-requires-nuxtpage","error","src\u002Frule-packs\u002Fnuxt\u002Frules\u002Fnuxt\u002Fparent-page-requires-nuxt-page.ts","https:\u002F\u002Fgithub.com\u002Fwords-with-agents\u002Fvite-doctor\u002Fblob\u002Fmain\u002Fsrc\u002Frule-packs\u002Fnuxt\u002Frules\u002Fnuxt\u002Fparent-page-requires-nuxt-page.ts",[22,23,25],"h2",{"id":24},"why-it-happens","Why it happens",[27,28,29,30,34,35,39,40,43,44,46],"p",{},"Nuxt turns pages\u002Fusers.vue next to pages\u002Fusers\u002F",[31,32,33],"span",{},"id",".vue into a parent route with a child route. The child renders inside the parent's ",[36,37,38],"code",{},"\u003CNuxtPage>",", so without one, navigating to \u002Fusers\u002F1 shows only the parent page. Nuxt reports this in development as NUXT_E4016, \"the parent page does not render ",[36,41,42],{},"\u003CNuxtPage \u002F>",", so the nested page cannot be displayed\", or as NUXT_E4011 when no page renders ",[36,45,38],{}," at all.",[22,48,50],{"id":49},"fix","Fix",[27,52,53,54,56],{},"Render ",[36,55,42],{}," in the parent page where the child should appear. If the pages are not meant to nest, move pages\u002Fusers.vue to pages\u002Fusers\u002Findex.vue.",[22,58,60],{"id":59},"example","Example",[62,63,65],"h3",{"id":64},"render-the-child-route-in-the-parent-page","Render the child route in the parent page",[27,67,68],{},"Before",[70,71,76],"pre",{"className":72,"code":73,"language":74,"meta":75,"style":75},"language-vue shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u003C!-- app\u002Fpages\u002Fusers.vue, next to app\u002Fpages\u002Fusers\u002F[id].vue -->\n\u003Ctemplate>\n  \u003Ch1>Users\u003C\u002Fh1>\n\u003C\u002Ftemplate>\n","vue","",[36,77,78,86,100,123],{"__ignoreMap":75},[31,79,82],{"class":80,"line":81},"line",1,[31,83,85],{"class":84},"sHwdD","\u003C!-- app\u002Fpages\u002Fusers.vue, next to app\u002Fpages\u002Fusers\u002F[id].vue -->\n",[31,87,89,93,97],{"class":80,"line":88},2,[31,90,92],{"class":91},"sMK4o","\u003C",[31,94,96],{"class":95},"swJcz","template",[31,98,99],{"class":91},">\n",[31,101,103,106,109,112,116,119,121],{"class":80,"line":102},3,[31,104,105],{"class":91},"  \u003C",[31,107,108],{"class":95},"h1",[31,110,111],{"class":91},">",[31,113,115],{"class":114},"sTEyZ","Users",[31,117,118],{"class":91},"\u003C\u002F",[31,120,108],{"class":95},[31,122,99],{"class":91},[31,124,126,128,130],{"class":80,"line":125},4,[31,127,118],{"class":91},[31,129,96],{"class":95},[31,131,99],{"class":91},[27,133,134],{},"After",[70,136,138],{"className":72,"code":137,"language":74,"meta":75,"style":75},"\u003C!-- app\u002Fpages\u002Fusers.vue -->\n\u003Ctemplate>\n  \u003Cdiv>\n    \u003Ch1>Users\u003C\u002Fh1>\n    \u003CNuxtPage \u002F>\n  \u003C\u002Fdiv>\n\u003C\u002Ftemplate>\n",[36,139,140,145,153,162,179,190,200],{"__ignoreMap":75},[31,141,142],{"class":80,"line":81},[31,143,144],{"class":84},"\u003C!-- app\u002Fpages\u002Fusers.vue -->\n",[31,146,147,149,151],{"class":80,"line":88},[31,148,92],{"class":91},[31,150,96],{"class":95},[31,152,99],{"class":91},[31,154,155,157,160],{"class":80,"line":102},[31,156,105],{"class":91},[31,158,159],{"class":95},"div",[31,161,99],{"class":91},[31,163,164,167,169,171,173,175,177],{"class":80,"line":125},[31,165,166],{"class":91},"    \u003C",[31,168,108],{"class":95},[31,170,111],{"class":91},[31,172,115],{"class":114},[31,174,118],{"class":91},[31,176,108],{"class":95},[31,178,99],{"class":91},[31,180,182,184,187],{"class":80,"line":181},5,[31,183,166],{"class":91},[31,185,186],{"class":95},"NuxtPage",[31,188,189],{"class":91}," \u002F>\n",[31,191,193,196,198],{"class":80,"line":192},6,[31,194,195],{"class":91},"  \u003C\u002F",[31,197,159],{"class":95},[31,199,99],{"class":91},[31,201,203,205,207],{"class":80,"line":202},7,[31,204,118],{"class":91},[31,206,96],{"class":95},[31,208,99],{"class":91},[22,210,212],{"id":211},"verify-the-fix","Verify the fix",[27,214,215],{},"Run only this rule after editing so the report stays focused on the diagnostic you are closing:",[70,217,221],{"className":218,"code":219,"language":220,"meta":75,"style":75},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","pnpm nuxt doctor --rules nuxt\u002Frouting\u002Fparent-page-requires-nuxtpage\n","bash",[36,222,223],{"__ignoreMap":75},[31,224,225,229,233,236,239],{"class":80,"line":81},[31,226,228],{"class":227},"sBMFI","pnpm",[31,230,232],{"class":231},"sfazB"," nuxt",[31,234,235],{"class":231}," doctor",[31,237,238],{"class":231}," --rules",[31,240,241],{"class":231}," nuxt\u002Frouting\u002Fparent-page-requires-nuxtpage\n",[22,243,245],{"id":244},"useful-links","Useful links",[247,248,249],"ul",{},[250,251,252],"li",{},[253,254,257],"a",{"href":13,"rel":255},[256],"nofollow","Upstream docs",[22,259,261],{"id":260},"related-rule","Related rule",[247,263,264],{},[250,265,266],{},[253,267,268],{"href":17},[36,269,16],{},[271,272,273],"style",{},"html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}",{"title":75,"searchDepth":88,"depth":88,"links":275},[276,277,278,281,282,283],{"id":24,"depth":88,"text":25},{"id":49,"depth":88,"text":50},{"id":59,"depth":88,"text":60,"children":279},[280],{"id":64,"depth":102,"text":65},{"id":211,"depth":88,"text":212},{"id":244,"depth":88,"text":245},{"id":260,"depth":88,"text":261},"NUXT0098","Finds a parent route component that never renders `\u003CNuxtPage>` or `\u003CRouterView>` directly or through another component. Doctor uses Nuxt's prepared parent-child relationships when available, including across layers. Without those relationships, it uses standard directory conventions only when configuration and layer evidence allow it. Unresolved render targets are treated as possibly rendering the outlet.","md","Render `\u003CNuxtPage \u002F>` in the parent page where the child should appear. If the pages are not meant to nest, move pages\u002Fusers.vue to pages\u002Fusers\u002Findex.vue.","nuxt",{},true,"\u002Fdiagnostics\u002Fnuxt0098",{"title":5,"description":285},"diagnostics\u002FNUXT0098","Nuxt turns pages\u002Fusers.vue next to pages\u002Fusers\u002F[id].vue into a parent route with a child route. The child renders inside the parent's `\u003CNuxtPage>`, so without one, navigating to \u002Fusers\u002F1 shows only the parent page. Nuxt reports this in development as NUXT_E4016, \"the parent page does not render `\u003CNuxtPage \u002F>`, so the nested page cannot be displayed\", or as NUXT_E4011 when no page renders `\u003CNuxtPage>` at all.","NogWAwUmplyAitSEdQ5QU_MmtbEJ2nu9YBjvoIIWvQo",[297,325,329,333,337,341,345,357,361,385,389,393],{"title":298,"path":299,"stem":300,"children":301,"icon":324},"CLI","\u002Fcli","1.cli\u002F1.index",[302,304,308,312,316,320],{"title":303,"path":299,"stem":300},"Run Doctor",{"title":305,"path":306,"stem":307},"Reports","\u002Fcli\u002Freports","1.cli\u002F2.reports",{"title":309,"path":310,"stem":311},"Configuration","\u002Fcli\u002Fconfiguration","1.cli\u002F3.configuration",{"title":313,"path":314,"stem":315},"CI and changed files","\u002Fcli\u002Fci","1.cli\u002F4.ci",{"title":317,"path":318,"stem":319},"Workspaces","\u002Fcli\u002Fworkspaces","1.cli\u002F5.workspaces",{"title":321,"path":322,"stem":323},"Cache and speed","\u002Fcli\u002Fcache","1.cli\u002F6.cache","i-lucide-terminal",{"title":326,"path":327,"stem":328},"Nuxt","\u002Fnuxt","2.nuxt",{"title":330,"path":331,"stem":332},"Vue","\u002Fvue","3.vue",{"title":334,"path":335,"stem":336},"Vite","\u002Fvite","4.vite",{"title":338,"path":339,"stem":340},"Nitro","\u002Fnitro","5.nitro",{"title":342,"path":343,"stem":344},"TypeScript","\u002Ftypescript","6.typescript",{"title":346,"path":347,"stem":348,"children":349,"icon":356},"Design system","\u002Fdesign-system","7.design-system\u002F1.index",[350,352],{"title":351,"path":347,"stem":348},"Overview",{"title":353,"path":354,"stem":355},"Classes and styles","\u002Fdesign-system\u002Fclasses","7.design-system\u002F2.classes","i-lucide-swatch-book",{"title":358,"path":359,"stem":360},"Package","\u002Fpackage","8.package",{"title":362,"path":363,"stem":364,"children":365,"icon":384},"Extending Doctor","\u002Fextending","9.extending\u002F1.index",[366,368,372,376,380],{"title":367,"path":363,"stem":364},"Write an extension",{"title":369,"path":370,"stem":371},"Visitors","\u002Fextending\u002Fvisitors","9.extending\u002F2.visitors",{"title":373,"path":374,"stem":375},"Ship with a library","\u002Fextending\u002Fshipping","9.extending\u002F3.shipping",{"title":377,"path":378,"stem":379},"Test a Rule","\u002Fextending\u002Ftesting","9.extending\u002F4.testing",{"title":381,"path":382,"stem":383},"Rule inputs","\u002Fextending\u002Frule-inputs","9.extending\u002F5.rule-inputs","i-lucide-puzzle",{"title":386,"path":387,"stem":388},"H3","\u002Fh3","9.h3",{"title":390,"path":391,"stem":392},"MCP","\u002Fmodel-context-protocol","9.model-context-protocol",{"title":394,"path":395,"stem":396},"Pinia","\u002Fpinia","9.pinia",1796507790857,"e745db9b-2064-477e-b678-8c0a05edc39c"]