ng serve reloads fail with cli 1.7.0 beta
See original GitHub issueVersions
Angular CLI: 1.7.0-beta.1
Node: 9.4.0
OS: win32 x64
Angular: 6.0.0-beta.0
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router
@angular/cli: 1.7.0-beta.1
@ngtools/json-schema: 1.1.0
typescript: 2.6.2
webpack: 3.10.0
Repro steps
create app with routing ng serve, load home page, navigate away from home url reload page in browser - or make edit and save for auto releoad
Observed behavior
Load fails as it tries to load everything from wrong path (... below represents path that was navigated to)
GET http://localhost:4200/.../inline.bundle.js net::ERR_ABORTED
GET http://localhost:4200/.../polyfills.bundle.js net::ERR_ABORTED
GET http://localhost:4200/.../styles.bundle.js net::ERR_ABORTED
GET http://localhost:4200/.../vendor.bundle.js net::ERR_ABORTED
GET http://localhost:4200/.../main.bundle.js net::ERR_ABORTED
Desired behavior
It should work as it does with cli version < 1.7.0
Mention any other details that might be useful (optional)
deployed dist continues to work, its only ng serve that is failing
Issue Analytics
- State:
- Created 6 years ago
- Reactions:11
- Comments:6
Top Results From Across the Web
Site is not auto reloading if "ng serve" is running - Stack Overflow
I resolve this issue by adding a command with serve. ng serve --poll=2000.
Read more >angular/angular-cli - Gitter
I am update rc6 in angular cli get error on "Could not serve on http://localhost:4200. It is either in use or you do...
Read more >Generating an app with Angular CLI and preparing i...
Angular CLI loads its configuration from .angular-cli.json ... Notice that the ng serve command does not exit and return to your terminal prompt...
Read more >Changelog - Cypress Documentation
Fixed an issue where the Cypress migration wizard would fail to run in global mode on newer ... Cypress 10 now includes beta...
Read more >Apache Subversion 1.7 Release Notes
Server -side configuration changes might be required for optimal performance with clients that use serf. WC-NG, 1.7, any, any, 1.6 working copies cannot...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I had the same problem and could work around it by specifying --base-href:
ng serve --base-href /
ng serve --base-href /
workaround mostly works but I am still seeing 404’s for font files