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
Yes, this behavior used to work in the previous version
The previous version in which this bug was not present was
No response
Description
When I serve my Angular application using the esbuild-based builder and a custom configuration that use a different index-file than the standard index.html, I get this logged in the console:
ng serve -c example
The esbuild-based browser application builder ('browser-esbuild') is currently in developer preview and is not yet recommended for production use. For additional information, please see https://angular.io/guide/esbuild
The 'namedChunks' option is not used by this builder and will be ignored.
The 'vendorChunk' option is not used by this builder and will be ignored.
Initial Chunk Files | Names | Raw Size
main.js | main | 34.58 kB |
polyfills.js | polyfills | 95 bytes |
styles.css | styles | 95 bytes |
| Initial Total | 34.76 kB
Application bundle generation complete. [2.300 seconds]
➜ Local: http://127.0.0.1:4200/
Watch mode enabled. Watching for file changes...
However, when I try to access http://127.0.0.1:4200 in the browser I get this:
Run ng serve -c example, open browser on http://127.0.0.1:4200 and you should see the 404 page as listed above.
Exit and and run ng serve -c example, open browser on http://127.0.0.1:4200 and you should see that the server has started and the application is initialized.
Command
serve
Is this a regression?
The previous version in which this bug was not present was
No response
Description
When I serve my Angular application using the esbuild-based builder and a custom configuration that use a different index-file than the standard
index.html
, I get this logged in the console:However, when I try to access
http://127.0.0.1:4200
in the browser I get this:It's in Swedish but basically a standard
404
.This is the the content of my
angular.json
:Minimal Reproduction
ng new angular-esbuild-issue
and thencd angular-esbuild-issue
example.html
insrc
directory.architect.build.builder
.example
inarchitect.build.configurations
:example
inarchitect.serve.configurations
:ng serve -c example
, open browser onhttp://127.0.0.1:4200
and you should see the404
page as listed above.ng serve -c example
, open browser onhttp://127.0.0.1:4200
and you should see that the server has started and the application is initialized.Exception or Error
No response
Your Environment
The text was updated successfully, but these errors were encountered: