Skip to content

Commit db7a719

Browse files
committed
fix(runtime): use node:path in dev error handler
`pathe` is not a dependency, so strict installs (pnpm `hoist=false`, Yarn PnP) failed every vite dev request with a 500.
1 parent 076ef12 commit db7a719

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/runtime/internal/error

‎src/runtime/internal/error/dev.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { HTTPError, type HTTPEvent } from "h3";
22
import { getRequestURL } from "h3";
33
import { readFile } from "node:fs/promises";
4-
import { resolve, dirname } from "pathe";
4+
import { resolve, dirname } from "node:path";
55
import consola from "consola";
66
import type { ErrorParser } from "youch-core";
77
import type { SourceMapConsumer } from "source-map";

0 commit comments

Comments
 (0)