Import problem got error as 'cannot find module ionic-native' why?

I am using ionic 3 . In one of my provider I have an import

import {SQLite,File,Transfer,GoogleAnalytics,FileOpener} from ‘ionic-native’;

but got error as

cannot find module ionic-native

My configuration is

Ionic Framework: 3.0.1
Ionic App Scripts: 1.3.0
Angular Core: 4.3.4
Angular Compiler CLI: 4.3.4
Node: 8.9.4
OS Platform: Linux 4.13
Navigator Platform: Linux x86_64
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:56.0) Gecko/20100101 Firefox/56.0

and installed plugins is

cordova-plugin-console 1.0.5 "Console"
cordova-plugin-device 2.0.1 "Device"
cordova-plugin-dns 1.0.2 "DNS"
cordova-plugin-file 6.0.1 "File"
cordova-plugin-file-opener2 2.0.19 "File Opener2"
cordova-plugin-inappbrowser 2.0.2 "InAppBrowser"
cordova-plugin-network-information 2.0.1 "Network Information"
cordova-plugin-splashscreen 4.0.3 "Splashscreen"
cordova-plugin-statusbar 2.2.1 "StatusBar"
cordova-plugin-uniquedeviceid 1.3.2 "UniqueDeviceID"
cordova-plugin-whitelist 1.3.1 "Whitelist"
cordova-sqlite-storage 2.2.0 "Cordova sqlite storage plugin"
ionic-plugin-keyboard 2.2.1 "Keyboard" 1.0.2 "sqlite porter"

Please advise



Hi @anespa
Install below

npm install ionic-native --save

1 Like