Skip to content

esbuild ng serve not watching files outside project root #25011

@gmfun

Description

@gmfun

Command

serve

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

v16.0.0-next.7

Description

Using nx workspace style project where app is in apps/some-app and it imports code from projects inside projects/some-project. When i use ng serve some-app with esbuild, changes in projects/some-project does not trigger reload.

The code in project/some-project is reference using tsconfig.json paths.

{
  "compilerOptions": {
       "paths": {
              "@org/some-project": ["projects/some-project/src/index.ts"]
       }
}

This used to work in v16.0.0-next.7 and with webpack based ng serve

Minimal Reproduction

  • create a new nx workspace
  • create an application
  • create a library
  • use the library in the application
  • run ng serve with esbuild for the application
  • make changes the the referenced library
  • reload is not triggered

Exception or Error

No response

Your Environment

v16.0.0-rc-0

Anything else relevant?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions