AgoraIO-Community / Angular-Agora-RTC

11 stars 16 forks source link

Agora + Angular univeral #17

Open Gururaj26 opened 4 years ago

Gururaj26 commented 4 years ago

I was working on a angular 7 project in which i used angular-agora-rtc it was all working fine, and when i came across with challenges in angular 7 with SEO i couldn't think of anything than implementing angular universal after that is implemented angular-agora-rtc takes alot of time to initialize. To be specific i pulled up logs from server which is mentioned below.

TypeError: Cannot read property 'indexOf' of undefined at Module.u (/app/dist/server.js:279893:12389) at checkSystemRequirements (/app/dist/server.js:279893:273630) at AngularAgoraRtcService.checkSystemRequirements (/app/dist/server.js:279559:93) at new AngularAgoraRtcService (/app/dist/server.js:279545:19) at _createClass (/app/dist/server.js:22816:20) at createProviderInstance (/app/dist/server.js:22788:26) at resolveNgModuleDep (/app/dist/server.js:22752:21) at NgModuleRef.get (/app/dist/server.js:23460:16) at resolveNgModuleDep (/app/dist/server.js:22771:29) at NgModuleRef_.get (/app/dist/server.js:23460:16) },

Anything missed because of which this happens ?