Running Sage 10 with the latest and greatest of all the Sage tools on a new project.
When running yarn bud dev it starts my session:
server url: http://localhost:3000/
proxy url: http://trellis.project.build/
[99%] [cache] begin idle
Then sometimes after saving changes I will see the error below about set headers.
server url: http://localhost:3000/
proxy url: http://trellis.project.build/
[99%] [cache] begin idle
Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
Any saves I make after this will refresh the browser but won’t update/ inject any changes.
Instead, if I run yarn bud build from a different terminal and manually refresh the page, all styles are missing and everything is broken until I exit out of yarn bud dev and rerun that command, then refresh again. Shortly after, the set headers error appears again and the process starts over.
The only way for me to see my changes as I work is to run my proxy URL and refresh manually constantly. Even then, on manually refreshes, the changes don’t appear until after several quick hard refresh attempts.
Of course I’ve searched the discourse for related issues but can’t come up with anything recent that is similar to this one. Any ideas what could be causing the hurdle for me?
Same for me here. Happens just after setting up a new fresh install of Sage, using Local app for running my WP install. Can’t login to my wp-admin, the page refresh just after entering login/password. and the console after running yarn dev echo ‘[ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client’ multiple times
Sage latest version, same for Acorn.
PHP 8.0, using Apache and node v16, bud 5.7.6 and webpack 5.70.0
It’s nice to know I am not the only one with this problem. It’s hard for me NOT to focus on it since it roadblocks my development process by constantly needing to restart yarn bud dev or manually refresh the dev url in my browser to see changes.
This notice should no longer be present in 5.8.x .
@joshb Your issue, whatever it is, is almost 100% unrelated to this debug notice. Hopefully bud@5.8.x fixes it for you. If not, I’m happy to look at a reproduction repository to debug.
Yesterday I started a new project with the latest sage 10 and am still experiencing the same issues as the other project I had first encountered these issues with. However this time I am not seeing the HEADERS_SENT issue.
I did a quick video / audio capture showing the problems I am having.
At this point I don’t know what to do to get this past this other than heading back to sage 9 or attempting to reformat my mac / upgrade, reinstall everything, etc… I would love not to do that if anyone has any idea why this is happening with my projects.