After I setup SSR for my angular 18 project, it properly worked. The thing is prerender that set in project.json file. When I change it to false, the project build without any problem. But, When it’s true, build stuck in chunk step and –verbose doesn’t show anything.
"build": {
"executor": "@angular-devkit/build-angular:application",
"outputs": ["{options.outputPath}"],
"options": {
"outputPath": "dist/web-app",
"index": "./src/index.html",
"browser": "./src/main.ts",
"polyfills": ["zone.js"],
"tsConfig": "tsconfig.app.json",
"inlineStyleLanguage": "scss",
"assets": [
{
"glob": "**/*",
"input": "assets",
"output": "/assets"
}
],
"styles": ["./src/styles.scss"],
"scripts": [],
"server": "./src/main.server.ts",
"prerender": true, // this is the problem
"ssr": {
"entry": "./server.ts"
}
},
I just set prerender true and false and found out that the problem is prerender: true.