Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning: You're using next/head inside the app directory, #1348

Open
nabilfatih opened this issue Dec 18, 2023 · 2 comments
Open

Warning: You're using next/head inside the app directory, #1348

nabilfatih opened this issue Dec 18, 2023 · 2 comments

Comments

@nabilfatih
Copy link

Describe the bug
Warning: You're using next/head inside the app directory, please migrate to the Metadata API. See https://nextjs.org/docs/app/building-your-application/upgrading/app-router-migration#step-3-migrating-nexthead for more details.

Reproduction
Use Jsonld in app dir. I set it useAppDir={true}. it works, but it kinda annoying to see that warning in terminal, i think because it set in the same file you declare next/head, thats why this warning occur.

Expected behavior
No warning, maybe create seperate file specifically for app dir

Additional context
Thanks for creating this repo :)

@TREX-SmolPP
Copy link

im getting the same thing too for the past 6 hours. any updates?

@Faishal24
Copy link

In my case, i place metadata in layout.js file, then i just move it to page.js file.

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

No branches or pull requests

3 participants