AgoraIO-Community / Angular-Agora-RTC

11 stars 16 forks source link

Hi, Dear, Thanks for making Agora plugin, But I have issue for using this plugin #1

Open rubysim opened 6 years ago

rubysim commented 6 years ago

1 I get error when I import this to app.module.ts

  imports: [
    BrowserModule,
    HttpClientModule,
    SelectModule,
    SelectSearchableModule,
    ProgressBarModule,
    Nl2BrPipeModule,
    IonicModule.forRoot(MyApp, {
      backButtonText: ' ',
      animate: false
    }),
    TranslateModule.forRoot({
        loader: {
            provide: TranslateLoader,
            useFactory: (HttpLoaderFactory),
            deps: [HttpClient]
        }
    }),
    AngularAgoraRtcModule.forRoot(agoraConfig),
    MomentModule
  ],
E:\test\nodejs\ionic\ijude-ionic\Ionic-App>ng -v

     _                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/

Angular CLI: 6.1.1
Node: 8.11.3
OS: win32 x64
Angular: 5.2.11
... animations, common, compiler, compiler-cli, core, forms
... http, platform-browser, platform-browser-dynamic

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.7.1 (cli-only)
@angular-devkit/build-optimizer   0.0.35
@angular-devkit/core              0.7.1 (cli-only)
@angular-devkit/schematics        0.7.1 (cli-only)
@schematics/angular               0.7.1 (cli-only)
@schematics/update                0.7.1 (cli-only)
rxjs                              5.5.11
typescript                        2.6.2
webpack                           3.8.1
Only1MrAnderson commented 6 years ago

It looks like you are using this in an Ionic Application? That is not something I have tested yet. Do you have a small demo you could push to Github?

vijaykumawat0578 commented 5 years ago

I have faced the same issue in my ionic application, do you find any solution for this issue yet?

juniorpires commented 5 years ago

I have the same issue in a web application.

juniorpires commented 5 years ago

I implemented in a new project and work. Maybe some dependence in my project cause this error.

juniorpires commented 5 years ago

It works! Updated angular to 6 version, typescript to 2.7.2 version and core-js to 2.5.4 version. I don't know wich one fix the bug, but this is the way.

Only1MrAnderson commented 5 years ago

@juniorpires I believe the upgrade to angular 6 is what resolved any issue you had as that is the version the package was written in. @vijaykumawat0578 I have not been able to get it built within an ionic application. I believe it to be an issue with ionic running in an insecure (http) browser and web rtc requires https