I’m using Angular 19 and Node.js 20, and I’m facing an issue with prerendering. When I run:
ng run myapp:prerender:qa
The process gets stuck at:
\ Prerendering 18 route(s) to G:\path_to\dist\browser...
It never completes and stays at that message indefinitely.
Here’s my angular.json configuration for prerendering:
"prerender": {
"builder": "@angular-devkit/build-angular:prerender",
"options": {
"discoverRoutes": false,
"routesFile": "routes.txt",
"browserTarget": "myapp:build",
"serverTarget": "myapp:server"
},
"configurations": {
"production": {
"browserTarget": "myapp:build:production",
"serverTarget": "myapp:server:production"
},
"qa": {
"browserTarget": "myapp:build:qa",
"serverTarget": "myapp:server:qa"
},
"staging": {
"browserTarget": "myapp:build:staging",
"serverTarget": "myapp:server:staging"
}
}
}
And my routes.txt contains:
/
/autofrecuente
/recetas
/proveedores
/trabaja
/covid19
/ayuda
/buscar
/nosotros
/contacto
/nuestros
/responsabilidad
/ubicaciones
/perfil
/perfil/mis-listas
/perfil/mis-compras
/coleccionables
/checkout
Has anyone encountered this issue before? What could be causing Angular’s prerendering to hang indefinitely? Any suggestions on debugging or fixing this would be greatly appreciated!
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744966206a4603694.html
评论列表(0条)