I have existing angular project. I need to apply ssr on my existing angular project. I am following this
ng add @nguniversal/express-engine
this command works as expected.npm run dev:ssr
after running this command, and opening browser on given link, I am getting following errorsCould not find translation file: ../../assets/translate/Pages/header/en.json
Could not find translation file: ../../assets/translate/Pages/footer/en.json
Could not find translation file: ../../assets/translate/Pages/home/en.json
ERROR ReferenceError: $ is not defined at HeaderComponent.ngOnInit (mypro\dist\pro\server\main.js:228895:9) ....
ERROR ReferenceError: FormData is not defined at HomeComponent.getUpcomingEvents (mypro\dist\pro\server\main.js:229576:29) ....
ERROR ReferenceError: localStorage is not defined at AuthService.isLoggedIn (mypro\dist\pro\server\main.js:240521:9) ....
1 rules skipped due to selector errors: .custom-file-input:lang(en)~.custom-file-label -> unmatched pseudo-class :lang
1 rules skipped due to selector errors: .custom-file-input:lang(en)~.custom-file-label -> unmatched pseudo-class :lang
I have tried different ways but getting same errors each time. I am not getting what should I do to apply SSR on existing project. If I create new angular project and apply same steps it works but it does not works on existing project.
How should I remove these errors?
Please help and guide.