I use angular 8 and server-side-rendering but i got error when i run npm run build:ssr As you can see, src is repeated twice home/app/front/**src
npm run build:ssr
src
home/app/front/**src
In file src/tsconfig.server.json (generated by ng add @nguniversal/express-engine --clientProject myProject ) I changed
src/tsconfig.server.json
ng add @nguniversal/express-engine --clientProject myProject
"files": [ "src/main.server.ts", "server.ts" ],
into
"files": [ "main.server.ts", "../server.ts" ],
After that npm run build:ssr works fine.