I have an ionic 3 app that needs access to the device’s serial number.
The Device plugin is already installed in the plugins folder, so I just had to do
npm install --save @ionic-native/device
I then imported it into app.module.ts and declared it in the @ngModule provider array as well.
But doing an
ionic serve or
build android gives me the following error:
Module ‘"…/node_modules/@ionic-native/core/index"’ has no exported member ‘IonicNativePlugin’.
How do I go about solving this?