Reputation: 121
when i install npm install cordova-plugin-native-ringtones in my ionic vue project got this following error
Failed to compile.
./node_modules/@ionic-native/native-ringtones/ngx/index.js Module not found: Error: Can't resolve '@angular/core' in '/Users/afzal-8396/Desktop/other_frameworks/ionic/myApp/node_modules/@ionic-native/native-ringtones/ngx'
Upvotes: 0
Views: 297
Reputation: 33345
you dont import the ngx..
from the documentation...
npm install cordova-plugin-native-ringtones
npm install @ionic-native/native-ringtones
ionic cap sync
in yout file
import { NativeRingtones } from '@ionic-native/native-ringtones
NativeRingtones.getRingtone().then((ringtones) => { console.log(ringtones); });
Upvotes: 0