codemod-registry icon indicating copy to clipboard operation
codemod-registry copied to clipboard

[Codemod:next/13/replace-next-head] Invalid codemod output

Open dmytro068 opened this issue 2 years ago • 0 comments


⚠️⚠️ Please do not include any proprietary code in the issue. ⚠️⚠️


Codemod: next/13/replace-next-head

1. Code before transformation (Input for codemod)

```typescript ```

2. Expected code after transformation (Desired output of codemod)

```typescript // paste code here ```

3. Faulty code obtained after running the current version of the codemod (Actual output of codemod)

```typescript const { t, isLocaleReady } = useLocale(); ```

Additional context

Metadata dependencies such as react hooks, cannot exist outside of react component.


dmytro068 avatar Sep 19 '23 12:09 dmytro068