저는 ionic2 (및 angular2)로 새롭고 첫 번째 앱에서 auth0을 구현하려고합니다. 그래서 나는 이것을 따라 갔다. https://auth0.com/docs/quickstart/hybrid/ionic2/no-api빠른 시작 Auth0 with Ionic2
나는 ionic2 웹 사이트에서 "시작하기"로 시작했고 모든 것이 완벽하게 작동한다. 그런 다음 나는 auth0 빠른 시작의 모든 단계를 수행하지만 내가 할 때이 오류가 얻을 "이온 성 역할"
import {App, Platform} from 'ionic-angular';
import {StatusBar} from 'ionic-native';
import {TabsPage} from './pages/tabs/tabs';
import {provide} from 'angular2/core';
import {Http} from 'angular2/http'
import {AuthHttp, AuthConfig} from 'angular2-jwt';
import {AuthService} from './services/auth/auth';
import {Type} from 'angular2/core';
@App({
template: '<ion-nav [root]="rootPage"></ion-nav>',
config: {},
providers: [
provide(AuthHttp, {
useFactory: (http) => {
return new AuthHttp(new AuthConfig(), http);
},
deps: [Http]
}),
AuthService
],
})
export class MyApp {
rootPage: any = TabsPage;
constructor(platform: Platform) {
platform.ready().then(() => {
StatusBar.styleDefault();
// When the app starts up, there might be a valid
// token in local storage. If there is, we should
// schedule an initial token refresh for when the
// token expires
this.auth.startupTokenRefresh();
});
}
: 나는 문제가 Google Play 무비 업체에 app.ts에 생각
0 883034 error Uncaught Invalid provider - only instances of Provider and Type are allowed, got: [object Object], http://localhost:8100/build/js/app.bundle.js, Line: 24470
을
}
나를 도와주세요!
같은 문제가 있습니까? :에스 – Eusthace