Cannot find module "ionic-native" with ionic2 super starter

I created a new super starter project (ionic start myapp super --v2).

When I run the project with ionic serve, it shows the following error:

Runtime Error
Cannot find module “ionic-native”

Stack
Error: Cannot find module "ionic-native"
at g (http://localhost:8100/build/polyfills.js:3:7133)
at Object. (http://localhost:8100/build/main.js:108352:7)
at webpack_require (http://localhost:8100/build/main.js:20:30)
at Object. (http://localhost:8100/build/main.js:82204:73)
at webpack_require (http://localhost:8100/build/main.js:20:30)
at Object. (http://localhost:8100/build/main.js:120594:70)
at webpack_require (http://localhost:8100/build/main.js:20:30)
at http://localhost:8100/build/main.js:66:18
at http://localhost:8100/build/main.js:69:10

Ionic Framework: 3.0.1
Ionic App Scripts: 1.3.0
Angular Core: 4.0.0
Angular Compiler CLI: 4.0.0
Node: 6.9.2
OS Platform: Windows 7
Navigator Platform: Win32
User Agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36

I tried installing the native core as suggested in another post.
npm install @ionic-native/core --save

Still getting the same error.

1 Like

Try to update Ionic using:

npm install -g ionic

I have updated ionic before trying out this.

Try a npm install on the root of the project.

The ionic2 super starter is broken at the moment.

There are multiple Pull Requests trying to fix this on GitHub, but none was accepted yet. For example this one: https://github.com/driftyco/ionic-starter-super/pull/95

Same problem here, though I am not using the super starter project. I just updated to 3.

Your system information:

Cordova CLI: 6.5.0 
Ionic Framework Version: 3.1.1
Ionic CLI Version: 2.2.3
Ionic App Lib Version: 2.2.1
Ionic App Scripts Version: 1.3.6
ios-deploy version: 1.9.1 
ios-sim version: 5.0.13 
OS: macOS Sierra
Node Version: v7.9.0
Xcode version: Xcode 8.3.2 Build version 8E2002

Well, then you problem is nothing similar to what was posted before and this is not the right place to aks for help on this.

Please create a new topic, describe what you are doing and where exactly things are going wrong. Thanks.