I am currently developing an application using Ionic 2 that can function both as a website in a browser and as a mobile app on iOS and Android. One key aspect of the app is its use of the SQLite plugin when accessed on mobile devices. However, I have encountered an issue where the SQLite plugin requires the import of ionic-native components, resulting in an error when running the app as a website due to ionic-native being exclusive to cordova devices. How can I work around this problem?
The problematic import statement:
import { SQLite, SQLiteObject } from '@ionic-native/sqlite';
The specific error message raised:
Cannot find module "@ionic-native/core"