Tiger AbrodiProtigerabrodi.blog·May 5, 2024Next.js error: "You're importing a component that needs next/headers"Introduction I had this error at work when working with Next.js You're importing a component that needs next/headers. That only works in a Server Component which is not supported in the pages/ directory.. We're using Next.js 14.1 with App router. I w...605 readsNext.jsAdd a thoughtful commentNo comments yetBe the first to start the conversation.