[{"data":1,"prerenderedAt":264},["ShallowReactive",2],{"navigation_docs":3,"diagnostic-content-NITRO0027":48},[4,8,12,16,20,24,28,32,36,40,44],{"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},"MCP","\u002Fmcp","9.mcp",{"title":45,"path":46,"stem":47},"Pinia","\u002Fpinia","9.pinia",{"id":49,"title":50,"body":51,"category":57,"code":254,"description":255,"docsUrl":58,"extension":256,"fix":81,"framework":257,"meta":258,"navigation":259,"pack":60,"path":260,"ruleId":61,"rulePath":62,"seo":261,"severity":63,"source":64,"sourceUrl":65,"stem":262,"why":74,"__hash__":263},"diagnostics\u002Fdiagnostics\u002FNITRO0027.md","NITRO0027: Import H3 through nitro\u002Fh3 in Nitro 3 server code",{"type":52,"value":53,"toc":242},"minimark",[54,66,71,75,79,82,86,90,93,141,144,172,176,179,210,214,226,230,238],[55,56],"rule-metadata",{"category":57,"docsUrl":58,"fix":59,"pack":60,"ruleId":61,"rulePath":62,"severity":63,"source":64,"sourceUrl":65},"h3","https:\u002F\u002Fnitro.build\u002Fdocs\u002Fmigration#h3-v2","suggestion","vite-doctor\u002Fnitro","nitro\u002Fh3\u002Fprefer-nitro-h3","\u002Fnitro\u002Frules\u002Fh3\u002Fprefer-nitro-h3","warn","src\u002Frule-packs\u002Fnitro\u002Frules\u002Fprefer-nitro-h3-import.ts","https:\u002F\u002Fgithub.com\u002Fonmax\u002Fvite-doctor\u002Fblob\u002Fmain\u002Fsrc\u002Frule-packs\u002Fnitro\u002Frules\u002Fprefer-nitro-h3-import.ts",[67,68,70],"h2",{"id":69},"why-it-happens","Why it happens",[72,73,74],"p",{},"Nitro 3 imports every H3 utility from nitro\u002Fh3, which re-exports the h3 Nitro runs. In a Nuxt 5 app, server code from a package that imports values from h3 makes Nuxt treat it as Nitro v2 code, apply its Nitro v2 compatibility layer to the whole app, and warn NUXT_B9003. In app server code, a bare h3 import resolves the h3 the app installs, which matches Nitro's only while the two ranges stay in step.",[67,76,78],{"id":77},"fix","Fix",[72,80,81],{},"Import H3 values from \"nitro\u002Fh3\". Type-only imports from \"h3\" can stay.",[67,83,85],{"id":84},"example","Example",[57,87,89],{"id":88},"import-h3-through-nitro","Import H3 through Nitro",[72,91,92],{},"Before",[94,95,100],"pre",{"className":96,"code":97,"language":98,"meta":99,"style":99},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { HTTPError, defineHandler } from \"h3\"\n","ts","",[101,102,103],"code",{"__ignoreMap":99},[104,105,108,112,116,120,123,126,129,132,135,138],"span",{"class":106,"line":107},"line",1,[104,109,111],{"class":110},"s7zQu","import",[104,113,115],{"class":114},"sMK4o"," {",[104,117,119],{"class":118},"sTEyZ"," HTTPError",[104,121,122],{"class":114},",",[104,124,125],{"class":118}," defineHandler",[104,127,128],{"class":114}," }",[104,130,131],{"class":110}," from",[104,133,134],{"class":114}," \"",[104,136,57],{"class":137},"sfazB",[104,139,140],{"class":114},"\"\n",[72,142,143],{},"After",[94,145,147],{"className":96,"code":146,"language":98,"meta":99,"style":99},"import { HTTPError, defineHandler } from \"nitro\u002Fh3\"\n",[101,148,149],{"__ignoreMap":99},[104,150,151,153,155,157,159,161,163,165,167,170],{"class":106,"line":107},[104,152,111],{"class":110},[104,154,115],{"class":114},[104,156,119],{"class":118},[104,158,122],{"class":114},[104,160,125],{"class":118},[104,162,128],{"class":114},[104,164,131],{"class":110},[104,166,134],{"class":114},[104,168,169],{"class":137},"nitro\u002Fh3",[104,171,140],{"class":114},[67,173,175],{"id":174},"verify-the-fix","Verify the fix",[72,177,178],{},"Run only this rule after editing so the report stays focused on the diagnostic you are closing:",[94,180,184],{"className":181,"code":182,"language":183,"meta":99,"style":99},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","pnpm vite-doctor . --framework nitro --rules nitro\u002Fh3\u002Fprefer-nitro-h3\n","bash",[101,185,186],{"__ignoreMap":99},[104,187,188,192,195,198,201,204,207],{"class":106,"line":107},[104,189,191],{"class":190},"sBMFI","pnpm",[104,193,194],{"class":137}," vite-doctor",[104,196,197],{"class":137}," .",[104,199,200],{"class":137}," --framework",[104,202,203],{"class":137}," nitro",[104,205,206],{"class":137}," --rules",[104,208,209],{"class":137}," nitro\u002Fh3\u002Fprefer-nitro-h3\n",[67,211,213],{"id":212},"useful-links","Useful links",[215,216,217],"ul",{},[218,219,220],"li",{},[221,222,225],"a",{"href":58,"rel":223},[224],"nofollow","Upstream docs",[67,227,229],{"id":228},"related-rule","Related rule",[215,231,232],{},[218,233,234],{},[221,235,236],{"href":62},[101,237,61],{},[239,240,241],"style",{},"html pre.shiki code .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--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 .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}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);}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}",{"title":99,"searchDepth":243,"depth":243,"links":244},2,[245,246,247,251,252,253],{"id":69,"depth":243,"text":70},{"id":77,"depth":243,"text":78},{"id":84,"depth":243,"text":85,"children":248},[249],{"id":88,"depth":250,"text":89},3,{"id":174,"depth":243,"text":175},{"id":212,"depth":243,"text":213},{"id":228,"depth":243,"text":229},"NITRO0027","Flags value imports and re-exports from h3 in Nitro 3 server code, in packages that declare nitro as a runtime dependency, and in the server runtime of Nuxt 5 module packages.","md","nitro",{},true,"\u002Fdiagnostics\u002Fnitro0027",{"title":50,"description":255},"diagnostics\u002FNITRO0027","czEmt5Ed9YpjRGf-mEHwJzI0ApqNgfi4_sol8GYV1Sg",1795268818075]