You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently upgraded an Angular v16 project to v19, switching to the application backend in the process. Moving away from Webpack plugins in favor of esbuild plugins, I replaced the default builder @angular-devkit/build-angular:application with @angular-builders/custom-esbuild:application in the build architect target of angular.json.
If I keep the default builder @angular-devkit/build-angular:dev-server for the target serve (with "buildTarget": "myproject:build:development"), I get the error
If instead I also switch it to @angular-builders/custom-esbuild:dev-server (which I have no real reason for, since I don't set up any custom middleware/...), then it works.
Minimal Reproduction
Any project with a build and a serve targets, where build uses custom-esbuild but serve doesn't.
Describe the Bug
I recently upgraded an Angular v16 project to v19, switching to the
application
backend in the process. Moving away from Webpack plugins in favor of esbuild plugins, I replaced the default builder@angular-devkit/build-angular:application
with@angular-builders/custom-esbuild:application
in thebuild
architect target ofangular.json
.If I keep the default builder
@angular-devkit/build-angular:dev-server
for the targetserve
(with"buildTarget": "myproject:build:development"
), I get the errorIf instead I also switch it to
@angular-builders/custom-esbuild:dev-server
(which I have no real reason for, since I don't set up any custom middleware/...), then it works.Minimal Reproduction
Any project with a
build
and aserve
targets, wherebuild
usescustom-esbuild
butserve
doesn't.Expected Behavior
I'm not sure whether that's expected behavior. If it's not, I'd expect the server to run without error.
Environment
The text was updated successfully, but these errors were encountered: