Beta.3 migration


#1

Hi,
I migrate from beta.1 to beta.3 just switched js and css files. And get

Uncaught Error: [$injector:modulerr] Failed to instantiate module ionic.weather due to:
Error: [$injector:modulerr] Failed to instantiate module starter.controllers due to:
Error: [$injector:modulerr] Failed to instantiate module ionic.service.load……1) angular.js:78
(anonymous function) angular.js:78
(anonymous function) angular.js:3650
forEach angular.js:303
loadModules angular.js:3616
createInjector angular.js:3556
doBootstrap angular.js:1299
bootstrap angular.js:1314
angularInit angular.js:1263
(anonymous function) angular.js:20793
trigger angular.js:2345
(anonymous function) angular.js:2616
forEach angular.js:310
eventHandler

Any idea what to do next ?

Regards,


#2

Can you explain exactly what migration steps you took? Did you just change the sources for the Ionic js and CSS files?

Can you post your head? Better yet, can you post a CodePen sample of the app?


#3

I just switch css and js files, the project is to large to put it on CodePen… I’ll dig deeper, but I want to get hint where to look first…

KlickIt
<!-- Sets initial viewport load and disables zooming  -->
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">
<link rel="stylesheet" type="text/css" href="css/index.css" />
<link rel="stylesheet" href="css/datepicker.css"/>
<link rel="stylesheet" href="css/ionic.css"/>
<link rel="stylesheet" href="css/app.css"/>
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false"></script>


<script src="libs/angular/angular.js"></script>
<script src="libs/angular/angular-cache-3.0.0-beta.3.min.js"></script>
<script src="libs/angular/angular-animate.js"></script>
<script src="libs/angular-ui/angular-ui-router.js"></script>
<script src="libs/angular/angular-resource.js"></script>
<script src="libs/angular/angular-sanitize.js"></script>
<script src="libs/ionic.js"></script>
<script src="libs/ionic-angular.js"></script>
<script src="libs/datepicker.js"></script>


<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyB16sGmIekuGIvYOfNoW9T44377IU2d2Es&sensor=true"></script>
<script src="js/modules/tracking.js"></script>
<script src="js/modules/UserSession.js"></script>
<script src="js/modules/intro.js"></script>
<script src="js/controllers.js"></script>

<script src="js/services.js"></script>
<script src="js/filters.js"></script>
<script src="js/directives.js"></script>
<script src="js/app.js"></script>

<script src="cordova.js"></script>

#4

Can you try loading ionic.js before Angular.

<script src="libs/ionic.js"></script>
<script src="libs/angular/angular.js"></script>
<script src="libs/angular/angular-cache-3.0.0-beta.3.min.js"></script>
<script src="libs/angular/angular-animate.js"></script>
<script src="libs/angular-ui/angular-ui-router.js"></script>
<script src="libs/angular/angular-resource.js"></script>
<script src="libs/angular/angular-sanitize.js"></script>
<script src="libs/ionic-angular.js"></script>

#5

I solve it…

I deleted the module “ionic.service.load” in some point in the past, so it seams that beta.1 wasn’t handling the modules that are declared but not really written…

Regards,