Skip to content

ng serve not pushing changes to browser in Angular 10.1.0 with --project usage #18728

@lonerzzz

Description

@lonerzzz

🐞 Bug report

Command (mark with an x)

  • new
  • build
  • serve
  • test
  • e2e
  • generate
  • add
  • update
  • lint
  • xi18n
  • run
  • config
  • help
  • version
  • doc

Is this a regression?

I believe that an angular 9.1.x version (not sure which) worked, but numerous changes have been made.

Description

When I run 'ng serve --project ' or 'ng serve --prod --project ' commands, the code is compiled but not pushed to the browser. The running code is the same code as prior to the build.

The same issue also occurs when I change code. After the code is changed, the 'ng serve' command detects the changes and recompiles but no changes are pushed to the browser.

To see if the error was transient, I have done the following with limited success:

  1. forced a reload (ctrl-f5) of the web page (did not work)
  2. restarted the browser (did not work)
  3. toggled the 'Disable cache' option under the Network view in Devtools in case caching was issue(did not work)
  4. Ran 'ng serve' from a newly created project that is not in a subdirectory (works)

Thus, it looks like the current revision of the tool does not work with projects structured in subdirectories, but without error output, it is hard to determine exactly what is happening.

🔬 Minimal Reproduction

I am unable to create a repo to reproduce as this is a fundamental tool issue. The tool does not indicate when it is pushing code or if it has encountered an error. The tool should indicate when it is pushing code or if encounters errors that prevent pushing the code.

🔥 Exception or Error

No error occurs, no output is generated.

🌍 Your Environment

Angular CLI: 10.1.0
Node: 10.13.0
OS: win32 x64

Angular: 10.1.0
... animations, cli, common, compiler, compiler-cli, core
... elements, forms, language-service, localize
... platform-browser, platform-browser-dynamic, router
Ivy Workspace: Yes

Package Version

@angular-devkit/architect 0.1001.0
@angular-devkit/build-angular 0.1001.0
@angular-devkit/build-ng-packagr 0.1001.0
@angular-devkit/build-optimizer 0.1001.0
@angular-devkit/build-webpack 0.1001.0
@angular-devkit/core 10.1.0
@angular-devkit/schematics 10.1.0
@ngtools/webpack 10.1.0
@schematics/angular 10.1.0
@schematics/update 0.1001.0
ng-packagr 10.1.0
rxjs 6.6.3
typescript 4.0.2
webpack 4.44.1

Anything else relevant?
No

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs: repro stepsWe cannot reproduce the issue with the information given

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions