Skip to content

<Head> (next/Head) throwing error #36277

Answered by thibautsabot
krush11 asked this question in Help
Discussion options

You must be logged in to vote

Thank you for providing the full code.

I was able to isolate the issue.
In the end, it comes down to the "type": "module" in your package.json.

If you remove it and use module.exports in next.config.js (instead of "export") the error will disappear.

Maybe it's a compatibility issue with mantine?

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@thibautsabot
Comment options

@krush11
Comment options

Comment options

You must be logged in to vote
1 reply
@krush11
Comment options

Answer selected by krush11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants