An interesting error in prod and I have no clue how do I get started to solve it
Unanswered
Oldsquaw posted this in #help-forum
OldsquawOP
(The image contains everything)
21 Replies
@Oldsquaw (The image contains everything)
some data is null
Something in a Array
OldsquawOP
I think its coming from
Number(n.content) but that seems like nextjs specific codemake sure its defined correctly
it looks like its trying to set meta tags in the head
so u have a starting point
OldsquawOP
I forced meta tag to be present like this and deployed - lets see what happens lol but this is very hacky lol
OldsquawOP
didn't work
@Oldsquaw (The image contains everything)
are you using the pages router or the app router
also send a minimal reproduction repository
OldsquawOP
app router. okay sounds good
@Oldsquaw app router. okay sounds good
are u setting any custom headers, scripts, tags or whatever
maybe it could be that u possibly set some weird header that next cant render
or some dynamic meta tags
i can only find [this](https://github.com/vercel/next.js/blob/2186f7e02f6721bfac254469db07b958d685f23c/errors/next-head-count-missing.mdx#L4)
which is for the pages router only. OP probably has some code or proxy service that messes with the internal structure of <head>
You have a custom pages/_document.js that doesn't have the components required for Next.js to render correctly.
Ensure that your _document.js is importing and rendering all of the required components.
In this case you are most likely not rendering the <Head> component imported from next/document.
which is for the pages router only. OP probably has some code or proxy service that messes with the internal structure of <head>
OldsquawOP
just these absolutely nothing else
OldsquawOP
definitely its the same error but for app router
Yeah that looks okay… I think? Could you make a reproduction repository? Without knowing how you triggered the bug it’s impossible to know why
OldsquawOP
okay so the funny thing is - i was initially deploying on AWS amplify and then just now i moved the repo to vercel and it just worked FINE
so I guess its fine for now and I might just switch to vercel