Open AntoineKM opened 3 weeks ago
Please provide a reproduction and not a link to a PR ;)
I’m reporting this bug as it could potentially affect others if it’s happening in our case. That’s why I’ve shared the PR—to show that no changes were made to the project between the v14 and v15 upgrade, aside from the version bump. Unfortunately, my team will not have the time to investigate further or create a basic reproduction, as the error message isn’t clear enough to pinpoint its source. I hope this still helps in identifying the issue!
Well reproducibility is kind of a requirement for issues as described in the issue template. So I think this issue might get closed soon😅
This happened with me when I tried to do:
import { Head } from 'next/document';
<Head>
<title>Title</title>
</Head>
I was using the app router, so besides the fact that I should have used Head from next/head
, I should have used the metadata api instead.
FYI if the only metadata you want to add in this way is the title, you can also run react 19 and just add a title component at a random location. This gets hoisted up into the head now since this react release🤙
Link to the code that reproduces this issue
https://github.com/tonightpass/kitchn/pull/749
To Reproduce
pnpm install
pnpm build
Current vs. Expected behavior
The build should complete successfully without any module resolution errors.
Provide environment information
Which area(s) are affected? (Select all that apply)
Pages Router
Which stage(s) are affected? (Select all that apply)
next build (local)
Additional context
When trying to build my Next.js project using
next build
, I'm encountering a module resolution error. The build process fails with the following error:Any assistance or guidance on resolving this issue would be greatly appreciated. Thank you!