Files
Donny/강동윤andGitHub 2cee0de01f feat(turbopack): Allow type-only import of usePathname (#68643)
### What?

Type-only imports of `usePathaname` from server components are fine.

### How?

Closes PACK-3186
2024-08-08 16:23:47 +09:00

3 lines
99 B
TypeScript

// This fails if the `type` keyword is removed
import { type usePathname } from 'next/navigation';