-
Notifications
You must be signed in to change notification settings - Fork 27.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AMP First Pages: Could not find files for /xxx in .next/build-manifest.json #16926
Comments
Does anyone review it? |
Hi! I am having a similar bug setting up AMP first pages. Is there any resolve for this? Error message: /xxx in .next/build-manifest.json |
Thanks for replying and some help. |
Fixes: #16926 I do not know this is the right way. Please review it.
I'm still having this problem.. what was the solution? My Next.js version is 9.5.4 |
@luiznasciment0 |
Hello @ka2jun8 ! Myabe you know this one. I have next: 10.0.7 and this just popped up: ./src/components/header/index.tsx Any solutions? |
Sorry, I did not know the solution. I tried following operations again to reproduce your issue.
How about removing .next and node_modules and try it again? |
Thank you! I did upgrade to next 10.1.3 remode node modules and yanr.lock. After that I did yarn install again and everything went well :) |
I'm having this issue with next v11.0.1 |
+1 with Next v11.0.1 and not only with AMP pages, but occasionally with any page in dev mode which is accessed for the first time. |
Same here. |
+1 same here |
even now i am getting this for / wth is happening. did anyone found something. Error:
|
Same here |
Try , |
Heads up - I've managed to fix this by updating webpack via
|
any solution? I'm using npm. |
me too |
Me too, and not only on AMP pages. |
This also worked for me. |
Same here. And also not only on AMP pages. |
Same. |
Anyone resolve this issue?? |
me too! and I am using nextjs@^12.0.7,the js file of dynamic page (pages/articles/[id].jsx) was missing when I visit the page via |
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Bug report
Describe the bug
When AMP first pages are accessed, the following error statement outputs.
Could not find files for /xxx in .next/build-manifest.json
.These AMP pages can be viewed.
To Reproduce
Expected behavior
No error outputs.
Screenshots
None.
System information
Additional context
This error will be called in
getPageFiles
here.getPageFiles
will be called ingetDocumentFiles
here.getDocumentFiles
is called when rendering all pages that use _document.So all pages might pass this function.
But I found that AMP First Pages was not included in build-manifest.json's pages (PR).
And, when AMPState ampFirst is true, the amp page files were excluded by render.tsx.
However, This PR seems to be removed that feature and caused the error.
It may be roughly solved the following way in _document.tsx.
before:
after:
The text was updated successfully, but these errors were encountered: