Ionic device motion

hello guys i have a problem after install dependencies of device motion in ionic using some commnd below:

  1. ionic cordova plugin add cordova-plugin-device-motion
  2. npm install @ionic-native/device-motion

after declare at my app.ts and want to use on my html page some error occur which was

image

below is my code app.ts:

import { BrowserModule } from ‘@angular/platform-browser’;
import { ErrorHandler, NgModule} from ‘@angular/core’;
import { IonicApp, IonicErrorHandler, IonicModule } from ‘ionic-angular’;
import { HttpClientModule } from ‘@angular/common/http’;
import { SplashScreen } from ‘@ionic-native/splash-screen’;
import { StatusBar } from ‘@ionic-native/status-bar’;
import { LaunchNavigator } from ‘@ionic-native/launch-navigator’
import { Geolocation } from ‘@ionic-native/geolocation’;
import { FCM } from ‘@ionic-native/fcm’;
import { InAppBrowser } from ‘@ionic-native/in-app-browser’;
import { AgmCoreModule } from ‘@agm/core’;
import { StarRatingModule } from ‘ionic3-star-rating’;
import { NgRippleModule } from ‘ng-ripple-module’;
import { DeviceMotion } from ‘@ionic-native/device-motion’;

import { MyApp } from ‘./app.component’;
import { AppSettings } from ‘…/services/app-settings’
import { ToastService } from ‘…/services/toast-service’
import { LoadingService } from ‘…/services/loading-service’
import { NetworkEngineProvider } from ‘…/providers/network-engine/network-engine’;
import { ErrorHandlerProvider } from ‘…/providers/error-handler/error-handler’;

@NgModule({
declarations: [
MyApp,
],
imports: [
BrowserModule,
HttpClientModule,
StarRatingModule.forRoot(),
IonicModule.forRoot(MyApp, {
backButtonText: ‘’,
iconMode: ‘ios’ /*,
modalEnter: ‘modal-slide-in’,
modalLeave: ‘modal-slide-out’,
pageTransition: ‘ios-transition’
*/
}),
AgmCoreModule.forRoot(AppSettings.MAP_KEY),
NgRippleModule,
],
bootstrap: [IonicApp],
entryComponents: [
MyApp,
],
providers: [
DeviceMotion,
StatusBar,
ToastService,
LoadingService,
SplashScreen,
NetworkEngineProvider,
LaunchNavigator,
Geolocation,
FCM,
InAppBrowser,
{provide: ErrorHandler, useClass: IonicErrorHandler},
ErrorHandlerProvider,

]
})
export class AppModule {}

i hope someone would respond