i am a beginner in sencha touch, i am trying to run a demo application using sencha touch profiles this is the code
<!-- index.html-->
<!DOCTYPE html>
<html>
<head>
<title>MOIC Touch</title>
<link rel="stylesheet" href="touch/resources/css/sencha-touch.css" type="text/css">
<script type="text/javascript" src="touch/sencha-touch-all-debug.js"></script>
<script type="text/javascript" src="app.js"></script>
</head>
<body></body>
</html>
//app.js
Ext.require([
'MOICTouch.profile.Tablet']);
Ext.application({
name: 'MOICTouch',
profiles: ['Tablet']
});
//app/profile/Tablet.js
Ext.define('MOICTouch.profile.Tablet', {
extend: 'Ext.app.Profile',
config: {
name: 'Tablet',
views: ['Main']
},
isActive: function() {
return Ext.os.is.Tablet;
}
});
when i run index.html i got the following error in browser console
Uncaught Error: Ext.Loader is not enabled, so dependencies cannot be resolved dynamically. Missing required class: MOICTouch.profile.Tablet
can anyone help me, thanks in advance