Closed IRediTOTO closed 1 year ago
@IRediTOTO What are your window dimensions when this happens? are you zoomed in, what percent are you zoomed in to? For now I would recommend zooming out if you are.
This also happens always when another instance of Next is run on port 3000. On zoom out it will come and on page refresh it will go off again. The only fix I could find for this at that situation was to change layout theme hero from home to content&media or default and change back to home later. What a "wonderful" fix !!!! The website frontend is so-so in many ways compared to payload cms.
@pcbal are you referring to our public website? or your own custom implementation of it?
If you are talking about the live website, could you please provide me with some reproduction steps?
If you are talking about your own implementation - are you up to date with master?
@pcbal are you referring to our public website? or your own custom implementation of it?
If you are talking about the live website, could you please provide me with some reproduction steps?
If you are talking about your own implementation - are you up to date with master?
This behaviour is with your website repo after some minor edits. Whenever a build error happens this behaviour starts and usually got over when the page /home is published again or created anew from website-cms. Here is a log obtained after an error build and the header was not present at the 404 output page. bal@bal:~/projects/Next/website$ yarn dev ready - started server on 0.0.0.0:3000, url: http://localhost:3000 info - Loaded env from /home/bal/projects/Next/website/.env warn - You have enabled experimental feature (appDir) in next.config.js. warn - Experimental features are not covered by semver, and may cause unexpected or broken application behavior. Use at your own risk.
info - Thank you for testing appDir
please leave your feedback at https://nextjs.link/app-feedback
event - compiled client and server successfully in 1404 ms (242 modules)
wait - compiling /page (client and server)...
event - compiled client and server successfully in 7.1s (1905 modules)
Warning: Each child in a list should have a unique "key" prop.
Check the top-level render call using
Before zoom in After zoom in the header returns After clearing error and resending page from cms
@pcbal So do you think it's the 404 page that is broken?
You are up to date with the latest main branch right?
Today I am up-to-date with fresh copies from the repo and am unable to reproduce the issue now. I think it may be over after a few recent commits for build errors. Earlier it had happened whenever and wherever the error occurred. If on pages collection home page was affected, if the posts collection blog page was affected etc. Anyway, you may close the issue for now and we are sure to reopen this if anything returns in due course. By the by the preview page is not implemented correctly here, and the required API folder and files missing from the repo. See the below screenshot.
@pcbal So do you think it's the 404 page that is broken?
You are up to date with the latest main branch right?
Sounds good, thanks for testing it out! I made updates to the header observer component, so I figured that would fix it.
re: preview - This is not supported in the app dir yet read about it here 👍
Bug Report
Lost header, sometime it work, sometimes not GIF here
Steps to Reproduce
Other Details