diff --git a/packages/next-codemod/transforms/built-in-next-font.ts b/packages/next-codemod/transforms/built-in-next-font.ts index c7fd5b2d4bab4..6576e791f24b9 100644 --- a/packages/next-codemod/transforms/built-in-next-font.ts +++ b/packages/next-codemod/transforms/built-in-next-font.ts @@ -5,7 +5,7 @@ export default function transformer( api: API, options: Options ) { - const j = api.jscodeshift + const j = api.jscodeshift.withParser('tsx') const root = j(file.source) // Before: import { ... } from '@next/font/google'