Intermittent failure to load local resources
I've got an Angular project running locally on my machine (https://localhost:4300 using NodeJS 24.11.1 and Angular 20.3.0) and I can't get it to consistently load files f… (baca lebih lanjut)
I've got an Angular project running locally on my machine (https://localhost:4300 using NodeJS 24.11.1 and Angular 20.3.0) and I can't get it to consistently load files for me when I refresh the page.
The network call shows the response coming back, but I'm getting a red ban icon in the Status column instead of 200. Sometimes it's styles.css and nothing looks right. Sometimes it's polyfills.js and I get an error in the console about "In this configuration Angular requires Zone.js". Sometimes, it's one or many chunk-*.js files. Sometimes, it goes back and forth about which it doesn't want to load. And then sometimes, everything is fine. When it fails, it takes between 1 and 20-some-odd refreshes of the page to get it to load properly. The passage of time doesn't seem to make a difference, as sometimes I can recompile the project and jump right into Firefox and it loads fine. Other times, it will only load after I've refreshed multiple times. If it's a JS file that fails, I also see a warning in the console window about "Loading failed for the script with source [filename]".
I've added an exception for the SSL certificate. CTRL+F5 doesn't make a difference in the behavior. The only extensions I have running are LastPass and Bitwarden. The only plugins I have in place are "OpenH264 Video Codec provided by Cisco Systems, Inc." and "Widevine Content Decryption Module provided by Google Inc." I've disabled Enhanced Tracking Protection for the site. I've rebooted and restarted everything.
Any ideas what might cause this? The other developers on the team don't have this issue. I'm using "ng serve --host 0.0.0.0 --ssl xxx-app-name-xxx --live-reload false" to run my environment. What should I be looking for on my machine that might cause this type of intermittent failure?