Cannot find module "@ionic-native/core" while using inapp browser

I tried to use inapp browser in ionic 2 installed and imported like this
import { InAppBrowser } from ‘@ionic-native/in-app-browser’;
An error popped while running the app in browser. Please solve this


Check out how to use Using Ionic Native: Ionic 2

Run these commands and see if it fixes the issue:

npm rebuild
npm install

Did you add it to your app’s module?