Error when trying using Device plugin ionic 4

#1

Hello, I am trying to use the “Device” plugin in ionic 4 (4.10.2) with the same commands indicated in the ionic page and when trying to run the app I get the following error.

PS: I’m trying to make a console.log of the device version.

console.log(this.device.uuid);

Ionic doc: https://ionicframework.com/docs/native/device#usage

Any solution?

Thank you

#2

import Device in app.module.ts provider inside like: provider:[ StatuaBar, SplashScreen, Device ]

1 Like