Skip to content
This repository has been archived by the owner on Feb 16, 2024. It is now read-only.

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

Open
DmytroHryshyn opened this issue Sep 19, 2023 · 0 comments
Open

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

DmytroHryshyn opened this issue Sep 19, 2023 · 0 comments
Labels

Comments

@DmytroHryshyn
Copy link
Contributor


⚠️⚠️ 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.


Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant