How debug this warning ? "You're using `next/head` inside the `app` directory"
Unanswered
Masai Lion posted this in #help-forum
Masai LionOP
I got this warning on a specific page on my web application, but i'm not using next/head anywhere in my application. I don't find anything if I globally search "next/head" in my project. How to debug this error and maybe get more verbose logging to know exactly where this warning is trigger ?
4 Replies
maybe one of your dependencies is using it... but i don't know of any better ways of debug
Masai LionOP
Yes, it's hard to debug because the error is only displayed once. If I change something on this route and reload the page, the error is no longer displayed. So if I want to do my debugging by elimination, I have to restart the "next dev" command for each action...
Masai LionOP
Finnaly I got it.
It was due to a missing 'use client' on a component.
But still doesn't understand why this warning was shown.
I will try to create a minimal reproductible repository to create an issue on github
It was due to a missing 'use client' on a component.
But still doesn't understand why this warning was shown.
I will try to create a minimal reproductible repository to create an issue on github
yeah thats a very odd error