Angular v19 prerender uses the wrong package.json #29787
Labels
angular/build:application
area: @angular/build
area: @angular/ssr
freq1: low
Only reported by a handful of users who observe it rarely
type: bug/fix
Which @angular/* package(s) are the source of the bug?
ssr
Is this a regression?
No
Description
when running an angular app that uses
AngularNodeAppEngine
from "@angular/ssr/node" andoutputMode
set toserver
it readsimports
fromsrc/package.json
which is set to be used in distpackage.json
in the source code the configs folder is live in "src/configs" but copied at build time into "dist/browser/configs"
the same goes for many dynamic imports that assume the app runs inside the dist dir, i.e. the paths may be differ from the corresponding paths in the source code.
The prerender should run the same way as the original app runs i.e. from dist.
another thing, I cannot find an option to totally disable the prerendering as
prerender: false
now has no effectPlease provide the environment you discovered this bug in (run
ng version
)Anything else?
No response
angular.json
The text was updated successfully, but these errors were encountered: