At server side need to render JavaScript code for that you have to install a mock browser package. The below code is at the top of the server.ts file For the above same thing you can do by different package command below The below code is at the top of the server.ts file build your project again with npm run build:ssr and…