Skip to content

ng serve esbuild is misreporting missing file in cli #25080

@jpike88

Description

@jpike88

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

n/a

Description

See title

Minimal Reproduction

See errors in red.
Screenshot 2023-04-27 at 12 53 55 pm
Screenshot 2023-04-27 at 12 54 45 pm

Yet in the browser, the file looks like it was bundled fine...
Screenshot 2023-04-27 at 12 54 58 pm

relevant configuration in my angular.json:

"assets": [
								{
									"glob": "**/*",
									"input": "src/assets/",
									"output": "/"
								},
								{
									"glob": "**/*",
									"input": "node_modules/ngx-extended-pdf-viewer/assets/",
									"output": "/assets/"
								}
							],

Exception or Error

No response

Your Environment

_                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/
    

Angular CLI: 16.0.0-rc.2
Node: 16.14.2
Package Manager: npm 9.6.3
OS: darwin arm64

Angular: 16.0.0-rc.2
... animations, cli, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router

Package                            Version
------------------------------------------------------------
@angular-devkit/architect          0.1600.0-rc.2
@angular-devkit/build-angular      16.0.0-rc.2
@angular-devkit/core               16.0.0-rc.2
@angular-devkit/schematics         16.0.0-rc.2
@angular/cdk                       16.0.0-rc.1
@angular/flex-layout               15.0.0-beta.42
@angular/material                  16.0.0-rc.1
@angular/material-moment-adapter   16.0.0-rc.1
@schematics/angular                16.0.0-rc.2
rxjs                               7.8.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