[{"data":1,"prerenderedAt":200},["ShallowReactive",2],{"navigation_docs":3,"diagnostic-content-NUXT0044":44},[4,8,12,16,20,24,28,32,36,40],{"title":5,"path":6,"stem":7},"CLI","\u002Fcli","1.cli",{"title":9,"path":10,"stem":11},"Nuxt","\u002Fnuxt","2.nuxt",{"title":13,"path":14,"stem":15},"Vue","\u002Fvue","3.vue",{"title":17,"path":18,"stem":19},"Vite","\u002Fvite","4.vite",{"title":21,"path":22,"stem":23},"Nitro","\u002Fnitro","5.nitro",{"title":25,"path":26,"stem":27},"TypeScript","\u002Ftypescript","6.typescript",{"title":29,"path":30,"stem":31},"shadcn","\u002Fshadcn","7.shadcn",{"title":33,"path":34,"stem":35},"Package","\u002Fpackage","8.package",{"title":37,"path":38,"stem":39},"Extending Doctor","\u002Fextending","9.extending",{"title":41,"path":42,"stem":43},"Pinia","\u002Fpinia","9.pinia",{"id":45,"title":46,"body":47,"category":53,"code":190,"description":191,"docsUrl":54,"extension":192,"fix":77,"framework":193,"meta":194,"navigation":195,"pack":56,"path":196,"ruleId":57,"rulePath":58,"seo":197,"severity":59,"source":60,"sourceUrl":61,"stem":198,"why":70,"__hash__":199},"diagnostics\u002Fdiagnostics\u002FNUXT0044.md","NUXT0044: Place app directories under app\u002F",{"type":48,"value":49,"toc":178},"minimark",[50,62,67,71,75,78,82,87,90,101,104,110,114,117,146,150,162,166,174],[51,52],"rule-metadata",{"category":53,"docsUrl":54,"fix":55,"pack":56,"ruleId":57,"rulePath":58,"severity":59,"source":60,"sourceUrl":61},"architecture","https:\u002F\u002Fnuxt.com\u002Fdocs\u002F4.x\u002Fguide\u002Fdirectory-structure\u002Fapp","suggestion","vite-doctor\u002Fnuxt","nuxt\u002Fproject\u002Fprefer-app-directory-placement","\u002Fnuxt\u002Frules\u002Fproject\u002Fprefer-app-directory-placement","info","src\u002Frule-packs\u002Fnuxt\u002Frules\u002Fnuxt\u002Fprefer-app-directory-placement.ts","https:\u002F\u002Fgithub.com\u002Fonmax\u002Fvite-doctor\u002Fblob\u002Fmain\u002Fsrc\u002Frule-packs\u002Fnuxt\u002Frules\u002Fnuxt\u002Fprefer-app-directory-placement.ts",[63,64,66],"h2",{"id":65},"why-it-happens","Why it happens",[68,69,70],"p",{},"Nuxt 4 scans app code under app\u002F. Keeping legacy top-level directories can make ownership unclear and diverge from the current directory contract.",[63,72,74],{"id":73},"fix","Fix",[68,76,77],{},"Use the Nuxt-supported app directory placement pattern instead.",[63,79,81],{"id":80},"example","Example",[83,84,86],"h3",{"id":85},"place-app-files-in-app-directory","Place app files in app directory",[68,88,89],{},"Before",[91,92,98],"pre",{"className":93,"code":95,"language":96,"meta":97},[94],"language-text","pages\u002Findex.vue\ncomponents\u002FAppHeader.vue\n","text","",[99,100,95],"code",{"__ignoreMap":97},[68,102,103],{},"After",[91,105,108],{"className":106,"code":107,"language":96,"meta":97},[94],"app\u002Fpages\u002Findex.vue\napp\u002Fcomponents\u002FAppHeader.vue\n",[99,109,107],{"__ignoreMap":97},[63,111,113],{"id":112},"verify-the-fix","Verify the fix",[68,115,116],{},"Run only this rule after editing so the report stays focused on the diagnostic you are closing:",[91,118,122],{"className":119,"code":120,"language":121,"meta":97,"style":97},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","pnpm nuxt doctor --rules nuxt\u002Fproject\u002Fprefer-app-directory-placement\n","bash",[99,123,124],{"__ignoreMap":97},[125,126,129,133,137,140,143],"span",{"class":127,"line":128},"line",1,[125,130,132],{"class":131},"sBMFI","pnpm",[125,134,136],{"class":135},"sfazB"," nuxt",[125,138,139],{"class":135}," doctor",[125,141,142],{"class":135}," --rules",[125,144,145],{"class":135}," nuxt\u002Fproject\u002Fprefer-app-directory-placement\n",[63,147,149],{"id":148},"useful-links","Useful links",[151,152,153],"ul",{},[154,155,156],"li",{},[157,158,161],"a",{"href":54,"rel":159},[160],"nofollow","Upstream docs",[63,163,165],{"id":164},"related-rule","Related rule",[151,167,168],{},[154,169,170],{},[157,171,172],{"href":58},[99,173,57],{},[175,176,177],"style",{},"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}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);}",{"title":97,"searchDepth":179,"depth":179,"links":180},2,[181,182,183,187,188,189],{"id":65,"depth":179,"text":66},{"id":73,"depth":179,"text":74},{"id":80,"depth":179,"text":81,"children":184},[185],{"id":85,"depth":186,"text":86},3,{"id":112,"depth":179,"text":113},{"id":148,"depth":179,"text":149},{"id":164,"depth":179,"text":165},"NUXT0044","Finds Nuxt project code that should use the supported app directory placement pattern instead.","md","nuxt",{},true,"\u002Fdiagnostics\u002Fnuxt0044",{"title":46,"description":191},"diagnostics\u002FNUXT0044","oRpDDWPoCBCcJCh2sqnn--46D9319G-lcpQ1zyxeDZk",1791309498592]