Super: starter project

I’m having problem running a super starter template.

When i run ionic serve --verbose, i see the following error in browsers (Chrome/Safari)

Runtime Error
Cannot find module “ionic-native”

Error: Cannot find module "ionic-native"
at v (http://localhost:8100/build/polyfills.js:3:4864)
at Object. (http://localhost:8100/build/main.js:116830:7)
at webpack_require (http://localhost:8100/build/main.js:20:30)
at Object. (http://localhost:8100/build/main.js:102085:73)
at webpack_require (http://localhost:8100/build/main.js:20:30)
at Object. (http://localhost:8100/build/main.js:128721: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

Here is my system information:

Cordova CLI: 6.5.0
Ionic Framework Version: 2.3.0
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
Ionic App Scripts Version: 1.1.4
ios-deploy version: 1.8.7
ios-sim version: 5.0.11
OS: macOS Sierra
Node Version: v6.10.0
Xcode version: Xcode 8.1 Build version 8B62

It looks like the super starter is expecting ionic-native <3, but the app-base is giving it 3.1.0. Your best bet is probably to fix the handful of places it’s importing from “ionic-native” to use the new locations like “@ionic-native/plugin”.

Here’s an example of the new Ionic Native implementation:

Had the same problem; installing ionic-native manually fixed it for me.

Check your package.json file if it doesn’t have an entry: “ionic-native”: “^2.9.0” then you will need to run:

npm install ionic-native --save

There is a pull request with suggested changes to update ionic-native to 3.1.0.

I created a fix for this

https://github.com/mrweiland/Ionic-Super-Starter-Ionic-Native-Fix/tree/master

1 Like

Nothing to do with the super starter, this code is calling all but relevant items…
If I was super bad, I’d say don’t make vids if you have no idey about what you’re talking about.