-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Frontend Development Build Not Working #23231
Comments
Hi @cgarwood, Sorry to hear that. Maybe your node version is too old? We use node 20 Strange that the issue is in devcontainer too 🤔 |
We had already checked this on discord, it was v20.18.1. |
Yeah, On Node 20.18.1. The devcontainer not working is the really weird one for me, especially after a fresh build. Makes it feel like its my system, but two different installs now exhibit the same issue. Surprised it hasn't cropped up for anyone else. Kind of at a loss 🫠 |
Try clearing your Babel cache and rebuilding: rm -rf node_modules/.cache/babel-loader Is this isolated or can others repro? |
I had tried nuking the entire |
Deleting The error is a bit perplexing... did you also try clearing the browser site data for Also, do you have a path and/or query params in the URL? |
No change after deleting the babel cache. No path or query params. However, if I try to go to /onboarding.html I get a different, but similar error in the browser console:
Or a login page URL gives me:
Haven't specifically gone through the browser to clear all data for the site, but I did have the same errors on Firefox on the new development VM after a fresh re-install, so it wouldn't have had any saved site data. Seems like its mostly limited to my setup (otherwise I assume other people would have reported it) but no clue what/why. Definitely odd. |
I'm not sure how, but your VM seems to be mucking with something. It's kind of behaving like a global script that's being run twice. It fails on the first Maybe try a private window? |
Same behavior in a private browsing window as well. I'm thinking it has to be related to the build process instead of the browser, as I get the same behavior on two different computers and my phone browser also isn't loading the page (iPhone, don't have a Mac so not sure if there's a way to get access to the Safari JS console). I tried pulling the devcontainers on a separate Windows 11 machine and running them through Docker directly on that windows machine and the UI loads OK there. Wondering if it's something Ubuntu specific with RSPack? |
Try:
They ought to be identical, but if they are different then |
The diff on the build is pretty significant between bd0bfc1 and 09c5dab However, changing edit: tested a few other devtool options, and it appears any option starting with |
Yeah a significant diff would be expected between commits. I meant between the build that gives you errors and the one you said works when you pulled the container on a separate Windows 11 machine (same latest commit).
That's interesting - not sure what to make of that yet. The point of telling you to remove |
aaaah that makes way more sense 😆 I'll try to grab that |
On |
That's good info, but because the This is probably an issue to file with Rspack. If you maybe parse the |
Went ahead and opened an issue on the rspack repo: web-infra-dev/rspack#8710 linking back to this one |
Checklist
Describe the issue you are experiencing
The development frontend build (from
script/develop
) is resulting in the frontend being stuck on the loading screen with javascript errors in the console:This started with my frontend dev environment (bare metal Ubuntu) that was working OK ~2 weeks ago.
build
,hass_frontend
, andnode_modules
folders, and re-runningyarn
andscript/develop
, same console error.yarn
andscript/develop
hass_frontend/index.html
to confirm that my HA Core was serving the current development builddevelopment_repo
and use the packaged version.Describe the behavior you expected
Development frontend build works properly
Steps to reproduce the issue
Details above.
What version of Home Assistant Core has the issue?
2025.01-dev
What was the last working version of Home Assistant Core?
No response
In which browser are you experiencing the issue with?
Chrome 131.0.6778.86, Firefox 131.0.6778.86 and 133.0, Edge 131.0.2903.86
Which operating system are you using to run this browser?
Windows 11 23H2, Ubuntu 24.04.1
State of relevant entities
No response
Problem-relevant frontend configuration
No response
Javascript errors shown in your browser console/inspector
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: