Skip to content

504 Outdated Optimize Dep with esbuild when using Stencil components #26345

@zerock54

Description

@zerock54

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

17

Description

Hi,

I am trying to convert my project to use the new build system but I am facing an issue when running ng serve.
I get these errors in the browser's console:

Group 32

In fact, all the imports errors point to some Stencil components

I tried to clean the .angular cache but the same issue occurs

Thanks

Minimal Reproduction

https://github.com/zerock54/Angular-17-esbuild-Stencil-ng-serve-issue

Exception or Error

No response

Your Environment

Angular CLI: 17.0.0
Node: 18.13.0
Package Manager: npm 8.19.3
OS: darwin arm64

Angular: 17.0.2
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1700.0
@angular-devkit/build-angular   17.0.0
@angular-devkit/core            17.0.0
@angular-devkit/schematics      17.0.0
@angular/cli                    17.0.0
@schematics/angular             17.0.0
rxjs                            7.5.7
typescript                      5.2.2
zone.js                         0.14.2

Anything else relevant?

No response

EDIT: add repro

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions