Hello,
We are getting an error only on safari (iOS) where the injector is failing when I try to go to my page for the first time. chrome, FF, and Opera are fine.
Please see below:
TypeError: undefined is not an object (evaluating 'injector.getOptional')
_runAppInitializersapplication_ref.ts:288
_initAppapplication_ref.ts:269
applicationapplication_ref.ts:213
bootstrapbrowser.ts:110
(anonymous function)app.js:63
DecorateConstructorangular2-polyfills.js:2064
decorateangular2-polyfills.js:1626
(anonymous function)_prelude.js:1
(anonymous function)app.ts:148
(anonymous function)app.ts:81
s_prelude.js:1
e_prelude.js:1
(anonymous function)_prelude.js:1
I also removed the ‘use strict’ statement during the gulp build process. I suspect something isn’t injected correctly, but I’m not sure.
My dependencies:
“angular2”: “2.0.0-beta.15”,
“es6-promise”: “3.1.2”,
“es6-shim”: “^0.35.0”,
“ionic-angular”: “2.0.0-beta.6”,
“ionic-native”: “^1.1.1”,
“ionicons”: “^3.0.0”,
“lodash”: “^4.11.0”,
“reflect-metadata”: “0.1.2”,
“rxjs”: “5.0.0-beta.6”,
“zone.js”: “^0.6.12”
Running ionic info yields:
Cordova CLI: 6.1.1
Gulp version: CLI version 3.8.11
Gulp local: Local version 3.9.1
Ionic Framework Version: 2.0.0-beta.6
Ionic CLI Version: 2.0.0-beta.25
Ionic App Lib Version: 2.0.0-beta.15
OS: Distributor ID: Ubuntu Description: Ubuntu 14.04.4 LTS
Node Version: v5.10.1
Any help is greatly appreciated!
Thanks,
Denis