question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ng serve reloads fail with cli 1.7.0 beta

See original GitHub issue

Versions

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:closed
  • Created 6 years ago
  • Reactions:11
  • Comments:6

github_iconTop GitHub Comments

3reactions
stephanmecommented, Jan 20, 2018

I had the same problem and could work around it by specifying --base-href: ng serve --base-href /

2reactions
slubowskycommented, Jan 22, 2018

ng serve --base-href / workaround mostly works but I am still seeing 404’s for font files

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found