Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions packages/vinext/src/shims/error-boundary.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
"use client";

import React from "react";
// oxlint-disable-next-line @typescript-eslint/no-require-imports -- next/navigation is shimmed
import { usePathname } from "next/navigation";
// Import the local shim, not the public next/navigation alias. The built
// package may execute this file before the plugin's resolveId hook is active.
import { usePathname } from "./navigation.js";

export type ErrorBoundaryProps = {
fallback: React.ComponentType<{ error: Error; reset: () => void }>;
Expand Down
Loading