I'm submitting a ... (check one with "x")
[X] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or https://ionicworldwide.herokuapp.com/
Current behavior:
When installing ionic-native in ionic v1 and trying to incorporate given the (very spread out) directions, the following error manifests:
Uncaught Error: [$injector:modulerr] Failed to instantiate module app due to:
Error: [$injector:modulerr] Failed to instantiate module ionic.native due to:
Error: [$injector:nomod] Module 'ionic.native' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.
http://errors.angularjs.org/1.5.3/$injector/nomod?p0=ionic.native
at http://localhost:8100/lib/ionic/js/ionic.bundle.js:13443:12
at http://localhost:8100/lib/ionic/js/ionic.bundle.js:15409:17
at ensure (http://localhost:8100/lib/ionic/js/ionic.bundle.js:15333:38)
at module (http://localhost:8100/lib/ionic/js/ionic.bundle.js:15407:14)
at http://localhost:8100/lib/ionic/js/ionic.bundle.js:17899:22
at forEach (http://localhost:8100/lib/ionic/js/ionic.bundle.js:13696:20)
at loadModules (http://localhost:8100/lib/ionic/js/ionic.bundle.js:17883:5)
at http://localhost:8100/lib/ionic/js/ionic.bundle.js:17900:40
at forEach (http://localhost:8100/lib/ionic/js/ionic.bundle.js:13696:20)
at loadModules (http://localhost:8100/lib/ionic/js/ionic.bundle.js:17883:5)
Expected behavior:
App would run.
Steps to reproduce:
Following directions from documentation:
npm install @ionic-native/core --save # From https://ionicframework.com/docs/native/
ionic cordova plugin add cordova-plugin-advanced-http # Next two from https://ionicframework.com/docs/native/http/
npm install --save @ionic-native/http
Then, based on https://github.com/ionic-team/ionic-native/blob/v2.x/README.md updating www/js/app.js from:
angular.module('app', ['ionic', 'app.controllers', 'app.routes', 'app.directives','app.services',])
to:
angular.module('app', ['ionic', 'ionic.native', 'app.controllers', 'app.routes', 'app.directives','app.services',])
Related code:
n/a
Other information:
n/a
Ionic info: (run ionic info from a terminal/cmd prompt and paste output below):
cli packages: (/usr/local/lib/node_modules)
@ionic/cli-utils : 1.19.2
ionic (Ionic CLI) : 3.20.0
global packages:
cordova (Cordova CLI) : 8.0.0
Gulp CLI : CLI version 3.9.1 Local version 3.9.1
local packages:
Cordova Platforms : android 7.0.0 ios 4.5.4
Ionic Framework : ionic1 1.3.3
System:
ios-deploy : 1.9.2
Node : v10.3.0
npm : 6.2.0
OS : macOS High Sierra
Xcode : Xcode 9.3 Build version 9E145
Environment Variables:
ANDROID_HOME : not set
Misc:
backend : pro
I'm submitting a ... (check one with "x")
[X] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or https://ionicworldwide.herokuapp.com/
Current behavior:
When installing ionic-native in ionic v1 and trying to incorporate given the (very spread out) directions, the following error manifests:
Expected behavior:
App would run.
Steps to reproduce:
Following directions from documentation:
Then, based on https://github.com/ionic-team/ionic-native/blob/v2.x/README.md updating
www/js/app.jsfrom:to:
Related code:
n/a
Other information:
n/a
Ionic info: (run
ionic infofrom a terminal/cmd prompt and paste output below):